@Test void getTokenExpirationDuration() { TokenExpirationInfoBO token = new TokenExpirationInfoBO(1555799115, 1555799415); Duration actualDuration = token.getTokenExpirationDuration(); assertThat(actualDuration, is(Duration.parse("PT5M"))); }
public Duration getTokenExpirationDuration() { return Duration.between(issuedAt, expiration); }
TokenExpirationInfoBO { public Duration getTokenExpirationDuration() { return Duration.between(issuedAt, expiration); } }
TokenExpirationInfoBO { public Duration getTokenExpirationDuration() { return Duration.between(issuedAt, expiration); } TokenExpirationInfoBO();  TokenExpirationInfoBO(long issuedAt, long expiration); }
TokenExpirationInfoBO { public Duration getTokenExpirationDuration() { return Duration.between(issuedAt, expiration); } TokenExpirationInfoBO();  TokenExpirationInfoBO(long issuedAt, long expiration); Duration getTokenExpirationDuration(); Duration getTokenLifetimeDuration(); boolean isDurationPassed(Duration duration); boolean isDurationPassed(Duration duration, Instant comparing); boolean isExpired(); boolean isPartLifetimePassed(double part); Instant getIssuedAt(); void setIssuedAt(Instant issuedAt); Instant getExpiration(); void setExpiration(Instant expiration); @Override String toString(); }
TokenExpirationInfoBO { public Duration getTokenExpirationDuration() { return Duration.between(issuedAt, expiration); } TokenExpirationInfoBO();  TokenExpirationInfoBO(long issuedAt, long expiration); Duration getTokenExpirationDuration(); Duration getTokenLifetimeDuration(); boolean isDurationPassed(Duration duration); boolean isDurationPassed(Duration duration, Instant comparing); boolean isExpired(); boolean isPartLifetimePassed(double part); Instant getIssuedAt(); void setIssuedAt(Instant issuedAt); Instant getExpiration(); void setExpiration(Instant expiration); @Override String toString();  }