예제 #1
0
파일: AmendmentTest.java 프로젝트: NCIP/psc
  public void testLastModifiedDatePrefersReleasedDateIfNoChanges() throws Exception {
    a3.setReleasedDate(DateTools.createDate(2007, Calendar.OCTOBER, 20));
    a3.addDelta(new EpochDelta());

    assertDayOfDate(2007, Calendar.OCTOBER, 20, a3.getLastModifiedDate());
  }
예제 #2
0
파일: AmendmentTest.java 프로젝트: NCIP/psc
  public void testLastModifiedDatePrefersUpdatedDateIfReleasedDateNull() throws Exception {
    a3.setReleasedDate(null);
    ensureUpdatedDate(a3, DateTools.createDate(2007, Calendar.OCTOBER, 20));

    assertDayOfDate(2007, Calendar.OCTOBER, 20, a3.getLastModifiedDate());
  }
예제 #3
0
파일: AmendmentTest.java 프로젝트: NCIP/psc
  public void testLastModifiedDatePrefersReleasedDateIfNoDeltas() throws Exception {
    a3.setReleasedDate(DateTools.createDate(2007, Calendar.OCTOBER, 20));
    a3.getDeltas().clear();

    assertDayOfDate(2007, Calendar.OCTOBER, 20, a3.getLastModifiedDate());
  }
예제 #4
0
파일: AmendmentTest.java 프로젝트: NCIP/psc
  public void testLastModifiedDateIsNullIfAllDatesAreNull() throws Exception {
    a3.setReleasedDate(null);
    ensureUpdatedDate(a3, null);

    assertNull(a3.getLastModifiedDate());
  }