Esempio n. 1
0
 private Award createAward(
     Proposal proposal, Date awardEntryDate, Date awardClosingDate, String awardStatusCode) {
   // Create and save an award
   Award award = new Award(proposal);
   award.setAwardEntryDate(awardEntryDate);
   award.setAwardClosingDate(awardClosingDate);
   award.setAwardStatusCode(awardStatusCode);
   return award;
 }
Esempio n. 2
0
 private void verifyAwardWillBeIncludedInClose(
     Award award,
     ProposalAwardCloseDocument close,
     boolean verifyAwardClosingDate,
     boolean verifyAwardStatusCode,
     boolean verifyAwardEntryDate) {
   if (verifyAwardClosingDate) {
     assertNull(
         "Award closing date must be null to be included in closing.",
         award.getAwardClosingDate());
   }
   if (verifyAwardStatusCode) {
     assertNotSame(
         "Award status code must not be 'U' to be included in closing.",
         award.getAwardStatusCode(),
         "U");
   }
   if (verifyAwardEntryDate) {
     assertTrue(
         "Award entry date must be less than or equal to the close last closed date.",
         award.getAwardEntryDate().getTime() <= close.getCloseOnOrBeforeDate().getTime());
   }
 }