use of edu.cornell.kfs.fp.businessobject.AchIncomeFile in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method testValidateMissingGood.
@Test
public void testValidateMissingGood() throws ParseException {
List<AchIncomeFile> achIncomeFiles = setupAchIncomeFilesGood();
assertTrue("contents should validate", advanceDepositService.validate(achIncomeFiles));
assertEquals("expecting no errors", 0, GlobalVariables.getMessageMap().getErrorCount());
final String regex = ".*Payer Name was not found for transaction amount $12,761\\.79 [ Date: 160223 ].*";
Pattern p = Pattern.compile(regex, Pattern.DOTALL);
assertFalse("email message text should NOT indicate payer not found", p.matcher(achIncomeFiles.get(0).getEmailMessageText()).matches());
}
Aggregations