Search in sources :

Example 1 with AchIncomeFileTransactionPremiumPayersAdminsContact

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

the class AchIncomeDelimitedFlatFileSpecificationTest method testParseLineIntoObjectAchIncomeFileTransactionPremiumPayersAdminsContact.

@Test
public void testParseLineIntoObjectAchIncomeFileTransactionPremiumPayersAdminsContact() throws Exception {
    AbstractFlatFileObjectSpecification flatFileObjectSpecification = new FlatFilePrefixObjectSpecification();
    List<FlatFilePropertySpecification> parseProperties = new ArrayList<>();
    setFlatFileProperty(parseProperties, 2, "name");
    flatFileObjectSpecification.setParseProperties(parseProperties);
    AchIncomeFileTransactionPremiumPayersAdminsContact achIncomeFileTransactionPremiumPayersAdminsContact = new AchIncomeFileTransactionPremiumPayersAdminsContact();
    achIncomeDelimitedFlatFileSpecification.parseLineIntoObject(flatFileObjectSpecification, PER_LINE, achIncomeFileTransactionPremiumPayersAdminsContact, 1);
    assertEquals("JOHN SMITH", achIncomeFileTransactionPremiumPayersAdminsContact.getName());
}
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) AchIncomeFileTransactionPremiumPayersAdminsContact(edu.cornell.kfs.fp.businessobject.AchIncomeFileTransactionPremiumPayersAdminsContact) AbstractFlatFileObjectSpecification(org.kuali.kfs.sys.batch.AbstractFlatFileObjectSpecification) Test(org.junit.Test)

Aggregations

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