@Test public void testRoundDownTimeStampMinutesWithTimeZone() { Calendar cal = BASE_CALENDAR_WITH_CUSTOM_TIMEZONE; Calendar cal2 = createCalendar(2012, 5, 15, 15, 10, 0, 0, CUSTOM_TIMEZONE); long timeToVerify = cal2.getTimeInMillis(); long withoutTimeZone = TimestampRoundDownUtil.roundDownTimeStampMinutes( cal.getTimeInMillis(), 5); long withTimeZone = TimestampRoundDownUtil.roundDownTimeStampMinutes( cal.getTimeInMillis(), 5, CUSTOM_TIMEZONE); assertThat(withoutTimeZone, not(equalTo(timeToVerify))); Assert.assertEquals(withTimeZone, timeToVerify); }
public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins) throws IllegalStateException { return roundDownTimeStampMinutes(timestamp, roundDownMins, null); }
TimestampRoundDownUtil { public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins) throws IllegalStateException { return roundDownTimeStampMinutes(timestamp, roundDownMins, null); } }
TimestampRoundDownUtil { public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins) throws IllegalStateException { return roundDownTimeStampMinutes(timestamp, roundDownMins, null); }  }
TimestampRoundDownUtil { public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins) throws IllegalStateException { return roundDownTimeStampMinutes(timestamp, roundDownMins, null); }  static long roundDownTimeStampSeconds(long timestamp,
      int roundDownSec); static long roundDownTimeStampSeconds(long timestamp, int roundDownSec, TimeZone timeZone); static long roundDownTimeStampMinutes(long timestamp,
      int roundDownMins); static long roundDownTimeStampMinutes(long timestamp, int roundDownMins, TimeZone timeZone); static long roundDownTimeStampHours(long timestamp,
      int roundDownHours); static long roundDownTimeStampHours(long timestamp, int roundDownHours, TimeZone timeZone); }
TimestampRoundDownUtil { public static long roundDownTimeStampMinutes(long timestamp, int roundDownMins) throws IllegalStateException { return roundDownTimeStampMinutes(timestamp, roundDownMins, null); }  static long roundDownTimeStampSeconds(long timestamp,
      int roundDownSec); static long roundDownTimeStampSeconds(long timestamp, int roundDownSec, TimeZone timeZone); static long roundDownTimeStampMinutes(long timestamp,
      int roundDownMins); static long roundDownTimeStampMinutes(long timestamp, int roundDownMins, TimeZone timeZone); static long roundDownTimeStampHours(long timestamp,
      int roundDownHours); static long roundDownTimeStampHours(long timestamp, int roundDownHours, TimeZone timeZone);  }