コード例 #1
0
 @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")));
 }
コード例 #2
0
  @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")));
  }