com.mmm.cms.homehealth.test
Class OasisRecord_B_ReadWriteTest
java.lang.Object
com.mmm.cms.homehealth.test.OasisRecord_B_ReadWriteTest
public class OasisRecord_B_ReadWriteTest
- extends java.lang.Object
This tests reading a set of Oasis records from a text file, based on the
Oasis Data Spec 1.60, and writing it back out to another file in order
to ensure that the reading and writing work properly.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OasisRecord_B_ReadWriteTest
public OasisRecord_B_ReadWriteTest()
main
public static void main(java.lang.String[] args)
- Parameters:
args - An array of 1) input file name, and 2) output filename. The
output filename is optional with the default being the input filename
suffixed with "_TESTOUT" before the extension. The extension will be
the same as the input filename.
Any status of the test or errors are presented to the console.
readTest
public int readTest(java.io.File input)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
readConvertTest
public java.util.List<HomeHealthRecordIF> readConvertTest(java.io.File input)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
writeTest
public void writeTest(java.util.List<HomeHealthRecordIF> oasisRecords,
java.io.File output)
throws java.io.IOException
- Throws:
java.io.IOException
writeTestDelimitted
public void writeTestDelimitted(java.util.List<HomeHealthRecordIF> oasisRecords,
java.io.File output,
java.lang.String delimiter)
throws java.io.IOException
- Throws:
java.io.IOException