@Test public void testIncrementMinute() throws Exception { Date testDate = ddMMyyyyHHmm.parse("31.01.2011 - 12:34"); testee = new DateCalculation(testDate); DateTime dt = new DateTime(testDate.getTime()); testee.incrementMinute(); dt = dt.plusMinutes(1); assertEquals("Increased to 12:35.", dt.toDate(), testee.getDate()); }
public void incrementMinute() { int newMinute = minute + 1; if (newMinute > MINUTES_PER_HOUR_MINUS_ONE_SEC) { minute = 0; incrementHour(); } else { minute = newMinute; } }
DateCalculation { public void incrementMinute() { int newMinute = minute + 1; if (newMinute > MINUTES_PER_HOUR_MINUS_ONE_SEC) { minute = 0; incrementHour(); } else { minute = newMinute; } } }
DateCalculation { public void incrementMinute() { int newMinute = minute + 1; if (newMinute > MINUTES_PER_HOUR_MINUS_ONE_SEC) { minute = 0; incrementHour(); } else { minute = newMinute; } } @SuppressWarnings("deprecation")  DateCalculation(Date givenDate); }
DateCalculation { public void incrementMinute() { int newMinute = minute + 1; if (newMinute > MINUTES_PER_HOUR_MINUS_ONE_SEC) { minute = 0; incrementHour(); } else { minute = newMinute; } } @SuppressWarnings("deprecation")  DateCalculation(Date givenDate); String formatToRfc3339Timestamp(Date date, boolean isLocalTime); String formatToRfc3339(Date date, DateStyle dateStyle, boolean isLocalTime); Date parseRfc3339Timestamp(final String pattern, boolean isLocalTime); Date parseRfc3339(String pattern, DateStyle dateStyle, boolean isLocalTime); @SuppressWarnings("deprecation") Date getDate(); void setDay(String day); void setMonth(String month); void setYear(String year); void setHour(String hour); void setMinute(String minute); void incrementDay(); void decrementDay(); void incrementMonth(); void decrementMonth(); void adjustDaysInMonth(); void incrementYear(); void decrementYear(); void incrementMinute(); void decrementMinute(); void incrementHour(); void decrementHour(); String getDay(); String getMonth(); String getYear(); int getHour(); int getMinute(); }
DateCalculation { public void incrementMinute() { int newMinute = minute + 1; if (newMinute > MINUTES_PER_HOUR_MINUS_ONE_SEC) { minute = 0; incrementHour(); } else { minute = newMinute; } } @SuppressWarnings("deprecation")  DateCalculation(Date givenDate); String formatToRfc3339Timestamp(Date date, boolean isLocalTime); String formatToRfc3339(Date date, DateStyle dateStyle, boolean isLocalTime); Date parseRfc3339Timestamp(final String pattern, boolean isLocalTime); Date parseRfc3339(String pattern, DateStyle dateStyle, boolean isLocalTime); @SuppressWarnings("deprecation") Date getDate(); void setDay(String day); void setMonth(String month); void setYear(String year); void setHour(String hour); void setMinute(String minute); void incrementDay(); void decrementDay(); void incrementMonth(); void decrementMonth(); void adjustDaysInMonth(); void incrementYear(); void decrementYear(); void incrementMinute(); void decrementMinute(); void incrementHour(); void decrementHour(); String getDay(); String getMonth(); String getYear(); int getHour(); int getMinute();  }