@Test public void shouldGetNextPeriodStartDate() throws Exception { ProcessingPeriod processingPeriod = make(a(defaultProcessingPeriod, with(endDate, DateUtils.parseDate("01-01-12 00:00:00", new String[]{"dd-MM-yy HH:mm:ss"})))); assertThat(processingPeriod.getNextStartDate(), is("2012-01-02")); }
public String getNextStartDate() { return forPattern("yyyy-MM-dd").print(new DateTime(getEndDate()).plusDays(1)); }
ProcessingPeriod extends BaseModel { public String getNextStartDate() { return forPattern("yyyy-MM-dd").print(new DateTime(getEndDate()).plusDays(1)); } }
ProcessingPeriod extends BaseModel { public String getNextStartDate() { return forPattern("yyyy-MM-dd").print(new DateTime(getEndDate()).plusDays(1)); } ProcessingPeriod(Long id);  ProcessingPeriod(Long id, Date startDate, Date endDate, Integer numberOfMonths, String name); }
ProcessingPeriod extends BaseModel { public String getNextStartDate() { return forPattern("yyyy-MM-dd").print(new DateTime(getEndDate()).plusDays(1)); } ProcessingPeriod(Long id);  ProcessingPeriod(Long id, Date startDate, Date endDate, Integer numberOfMonths, String name); void validate(); void includeEntireDuration(); @SuppressWarnings("unused") String getStringStartDate(); @SuppressWarnings("unused") String getStringEndDate(); String getStringYear(); String getNextStartDate(); }
ProcessingPeriod extends BaseModel { public String getNextStartDate() { return forPattern("yyyy-MM-dd").print(new DateTime(getEndDate()).plusDays(1)); } ProcessingPeriod(Long id);  ProcessingPeriod(Long id, Date startDate, Date endDate, Integer numberOfMonths, String name); void validate(); void includeEntireDuration(); @SuppressWarnings("unused") String getStringStartDate(); @SuppressWarnings("unused") String getStringEndDate(); String getStringYear(); String getNextStartDate();  }