public abstract class CommonTester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CommandLineParams |
params |
protected OasisReaderFactory |
readerFactory |
HomeHealthRecordIF |
recordEOF |
Constructor and Description |
---|
CommonTester() |
Modifier and Type | Method and Description |
---|---|
CommandLineParams |
getCommandLineParams(java.lang.String[] args)
Allows an extended class to create their own parameter lists
|
java.lang.String |
getOutFileSuffix() |
void |
printOptions(java.util.List<java.lang.String> options)
Prints the options available for this module
|
HomeHealthRecordIF |
readRecord(java.io.BufferedReader inReader,
int curRecNum)
returns a HomeHealth record unless end of file, or an exception in
reading the file or parsing the record.
|
abstract void |
runTest(java.io.BufferedReader bufReader,
java.io.Writer writer,
HomeHealthGrouperFactoryIF grouperFactory,
CommandLineParams commandLine)
Other classes must implement this to perform the actual work
|
void |
runTest(CommandLineParams params,
HomeHealthGrouperFactoryIF grouperFactory,
java.io.File inputFilename,
java.io.File outputFilename) |
void |
runTest(CommandLineParams params,
java.util.Properties properties) |
void |
runTest(java.lang.String[] args) |
protected CommandLineParams params
protected OasisReaderFactory readerFactory
public HomeHealthRecordIF recordEOF
public java.lang.String getOutFileSuffix()
public HomeHealthRecordIF readRecord(java.io.BufferedReader inReader, int curRecNum)
inReader
- curRecNum
- public void runTest(java.lang.String[] args)
public void runTest(CommandLineParams params, java.util.Properties properties)
public void runTest(CommandLineParams params, HomeHealthGrouperFactoryIF grouperFactory, java.io.File inputFilename, java.io.File outputFilename)
public CommandLineParams getCommandLineParams(java.lang.String[] args)
args
- public abstract void runTest(java.io.BufferedReader bufReader, java.io.Writer writer, HomeHealthGrouperFactoryIF grouperFactory, CommandLineParams commandLine)
bufReader
- writer
- grouperFactory
- commandLine
- public void printOptions(java.util.List<java.lang.String> options)
options
-