Search in sources :

Example 1 with AchIncomeFileTransactionPremiumReceiverName

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

the class AchIncomeDelimitedFlatFileSpecificationTest method testParseLineIntoObjectAchIncomeFileTransactionPremiumReceiverName.

@Test
public void testParseLineIntoObjectAchIncomeFileTransactionPremiumReceiverName() throws Exception {
    AbstractFlatFileObjectSpecification flatFileObjectSpecification = new FlatFilePrefixObjectSpecification();
    List<FlatFilePropertySpecification> parseProperties = new ArrayList<>();
    setFlatFileProperty(parseProperties, 3, "name");
    flatFileObjectSpecification.setParseProperties(parseProperties);
    AchIncomeFileTransactionPremiumReceiverName achIncomeFileTransactionPremiumReceiverName = new AchIncomeFileTransactionPremiumReceiverName();
    achIncomeDelimitedFlatFileSpecification.parseLineIntoObject(flatFileObjectSpecification, NM1_LINE, achIncomeFileTransactionPremiumReceiverName, 1);
    assertEquals("PREMIUM RECEIVER NAME", achIncomeFileTransactionPremiumReceiverName.getName());
}
Also used : FlatFilePrefixObjectSpecification(org.kuali.kfs.sys.batch.FlatFilePrefixObjectSpecification) AchIncomeFileTransactionPremiumReceiverName(edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionPremiumReceiverName) ArrayList(java.util.ArrayList) FlatFilePropertySpecification(org.kuali.kfs.sys.batch.FlatFilePropertySpecification) DelimitedFlatFilePropertySpecification(org.kuali.kfs.sys.batch.DelimitedFlatFilePropertySpecification) AbstractFlatFileObjectSpecification(org.kuali.kfs.sys.batch.AbstractFlatFileObjectSpecification) Test(org.junit.Test)

Aggregations

AchIncomeFileTransactionPremiumReceiverName (edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionPremiumReceiverName)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