@Test public final void testIsValidFrequencyBase() { awardReportTerm.setFrequencyBaseCode("5"); Assert.assertTrue( awardDocumentRule.isValidFrequencyBase(awardReportTerm, getFrequencyBaseCodes("5"))); awardReportTerm.setFrequencyBaseCode("6"); Assert.assertFalse( awardDocumentRule.isValidFrequencyBase(awardReportTerm, getFrequencyBaseCodes("5"))); }
@Test public final void testEvaluateBusinessRuleForReportCodeField() { int i = 0; awardReportTerm.setReportClassCode("1"); awardReportTerm.setReportCode("5"); Assert.assertTrue(awardDocumentRule.isValidReportCode(awardReportTerm, getReportCodes("1"))); awardReportTerm.setReportClassCode("1"); awardReportTerm.setReportCode("36"); Assert.assertFalse(awardDocumentRule.isValidReportCode(awardReportTerm, getReportCodes("1"))); }