@Test public void testGetExpirationSeconds() { long expected = 1L; long result = underTest.getExpirationSeconds(106001000L); Assert.assertEquals(result, expected); }
public long getExpirationSeconds(final long validityValue) { return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER; }
ExpirationTimeProvider { public long getExpirationSeconds(final long validityValue) { return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER; } }
ExpirationTimeProvider { public long getExpirationSeconds(final long validityValue) { return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER; }  }
ExpirationTimeProvider { public long getExpirationSeconds(final long validityValue) { return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER; }  long getExpirationMinutes(final long validityValue); long getExpirationSeconds(final long validityValue); }
ExpirationTimeProvider { public long getExpirationSeconds(final long validityValue) { return ((validityValue - currentDateProvider.getCurrentTimeInMillis()) / SECOND_DIVIDER) % MINUTE_DIVIDER; }  long getExpirationMinutes(final long validityValue); long getExpirationSeconds(final long validityValue);  }