Skip to content

Commit

Permalink
Adds newlines in OneTimeTokenTests to fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
R4N committed Dec 11, 2024
1 parent 8d64036 commit dc7a752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
* @author Marcus da Coregio
*/
class InMemoryOneTimeTokenServiceTests {

static final Duration CUSTOM_EXPIRE_DURATION = Duration.ofMinutes(30L);

InMemoryOneTimeTokenService oneTimeTokenService = new InMemoryOneTimeTokenService();

InMemoryOneTimeTokenService oneTimeTokenServiceWithTokenSettings = new InMemoryOneTimeTokenService(
OneTimeTokenSettings.withDefaults().timeToLive(CUSTOM_EXPIRE_DURATION).build());

@Test
void generateThenTokenValueShouldBeValidUuidAndProvidedUsernameIsUsed() {
GenerateOneTimeTokenRequest request = new GenerateOneTimeTokenRequest("user");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,5 @@ void consumeWhenTokenWithCustomExpireTimeIsExpiredThenReturnNull() {
OneTimeToken consumed = this.oneTimeTokenServiceWithTokenSettings.consume(authenticationToken);
assertThat(consumed).isNull();
}

}

0 comments on commit dc7a752

Please sign in to comment.