Search in sources :

Example 1 with AchIncomeFileTransactionTrace

use of edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionTrace in project cu-kfs by CU-CommunityApps.

the class AchIncomeDelimitedFlatFileSpecificationTest method testParseLineIntoObjectAchIncomeFileTransactionTrace.

@Test
public void testParseLineIntoObjectAchIncomeFileTransactionTrace() throws Exception {
    AbstractFlatFileObjectSpecification flatFileObjectSpecification = new FlatFilePrefixObjectSpecification();
    List<FlatFilePropertySpecification> parseProperties = new ArrayList<>();
    setFlatFileProperty(parseProperties, 2, "traceNumber");
    flatFileObjectSpecification.setParseProperties(parseProperties);
    AchIncomeFileTransactionTrace achIncomeFileTransactionTrace = new AchIncomeFileTransactionTrace();
    achIncomeDelimitedFlatFileSpecification.parseLineIntoObject(flatFileObjectSpecification, TRN_LINE, achIncomeFileTransactionTrace, 1);
    assertEquals("041036009100170", achIncomeFileTransactionTrace.getTraceNumber());
}
Also used : FlatFilePrefixObjectSpecification(org.kuali.kfs.sys.batch.FlatFilePrefixObjectSpecification) ArrayList(java.util.ArrayList) FlatFilePropertySpecification(org.kuali.kfs.sys.batch.FlatFilePropertySpecification) DelimitedFlatFilePropertySpecification(org.kuali.kfs.sys.batch.DelimitedFlatFilePropertySpecification) AchIncomeFileTransactionTrace(edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionTrace) AbstractFlatFileObjectSpecification(org.kuali.kfs.sys.batch.AbstractFlatFileObjectSpecification) Test(org.junit.Test)

Aggregations

AchIncomeFileTransactionTrace (edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionTrace)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 AbstractFlatFileObjectSpecification (org.kuali.kfs.sys.batch.AbstractFlatFileObjectSpecification)1 DelimitedFlatFilePropertySpecification (org.kuali.kfs.sys.batch.DelimitedFlatFilePropertySpecification)1 FlatFilePrefixObjectSpecification (org.kuali.kfs.sys.batch.FlatFilePrefixObjectSpecification)1 FlatFilePropertySpecification (org.kuali.kfs.sys.batch.FlatFilePropertySpecification)1