com.mmm.cms.homehealth.test
Class OasisRecord_C_ReadWriteTest
java.lang.Object
com.mmm.cms.homehealth.test.OasisRecord_C_ReadWriteTest
public class OasisRecord_C_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_C_ReadWriteTest
public OasisRecord_C_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.
countRecords
public int countRecords(java.io.File input)
throws java.io.FileNotFoundException,
java.io.IOException
- Throws:
java.io.FileNotFoundException
java.io.IOException
readConvertTest
public java.util.List<HomeHealthRecord_C_IF> 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<HomeHealthRecord_C_IF> oasisRecords,
java.io.File output)
throws java.io.IOException
- Throws:
java.io.IOException
writeTestDelimitted
public void writeTestDelimitted(java.util.List<HomeHealthRecord_C_IF> oasisRecords,
java.io.File output,
java.lang.String delimiter)
throws java.io.IOException
- Throws:
java.io.IOException