Skip to content

Commit b182d9d

Browse files
committed
Fix code formatting
Issue gh-9146
1 parent 339da36 commit b182d9d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

oauth2/oauth2-core/src/test/java/org/springframework/security/oauth2/core/OAuth2RefreshTokenTests.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,23 @@ public class OAuth2RefreshTokenTests {
3838

3939
@Test
4040
public void constructorWhenTokenValueIsNullThenThrowIllegalArgumentException() {
41-
assertThatIllegalArgumentException().isThrownBy(() ->
42-
new OAuth2RefreshToken(null, ISSUED_AT, EXPIRES_AT))
41+
assertThatIllegalArgumentException().isThrownBy(() -> new OAuth2RefreshToken(null, ISSUED_AT, EXPIRES_AT))
4342
.withMessage("tokenValue cannot be empty");
4443
}
4544

4645
@Test
4746
public void constructorWhenIssuedAtAfterExpiresAtThenThrowIllegalArgumentException() {
48-
assertThatIllegalArgumentException().isThrownBy(() ->
49-
new OAuth2RefreshToken(TOKEN_VALUE, Instant.from(EXPIRES_AT).plusSeconds(1), EXPIRES_AT))
47+
assertThatIllegalArgumentException()
48+
.isThrownBy(
49+
() -> new OAuth2RefreshToken(TOKEN_VALUE, Instant.from(EXPIRES_AT).plusSeconds(1), EXPIRES_AT))
5050
.withMessage("expiresAt must be after issuedAt");
5151
}
5252

5353
@Test
5454
public void constructorWhenExpiresAtBeforeIssuedAtThenThrowIllegalArgumentException() {
55-
assertThatIllegalArgumentException().isThrownBy(() ->
56-
new OAuth2RefreshToken(TOKEN_VALUE, ISSUED_AT, Instant.from(ISSUED_AT).minusSeconds(1)))
55+
assertThatIllegalArgumentException()
56+
.isThrownBy(
57+
() -> new OAuth2RefreshToken(TOKEN_VALUE, ISSUED_AT, Instant.from(ISSUED_AT).minusSeconds(1)))
5758
.withMessage("expiresAt must be after issuedAt");
5859
}
5960

0 commit comments

Comments
 (0)