Skip to content

Commit 804f200

Browse files
author
Steve Riesenberg
committed
Polish XorCsrfTokenRequestAttributeHandlerTests
1 parent 05e4a1d commit 804f200

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

web/src/test/java/org/springframework/security/web/csrf/XorCsrfTokenRequestAttributeHandlerTests.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,20 @@ public void handleWhenCsrfTokenRequestedTwiceThenCached() {
159159

160160
@Test
161161
public void resolveCsrfTokenValueWhenRequestIsNullThenThrowsIllegalArgumentException() {
162-
assertThatIllegalArgumentException().isThrownBy(() -> this.handler.resolveCsrfTokenValue(null, this.token))
162+
// @formatter:off
163+
assertThatIllegalArgumentException()
164+
.isThrownBy(() -> this.handler.resolveCsrfTokenValue(null, this.token))
163165
.withMessage("request cannot be null");
166+
// @formatter:on
164167
}
165168

166169
@Test
167170
public void resolveCsrfTokenValueWhenCsrfTokenIsNullThenThrowsIllegalArgumentException() {
168-
assertThatIllegalArgumentException().isThrownBy(() -> this.handler.resolveCsrfTokenValue(this.request, null))
171+
// @formatter:off
172+
assertThatIllegalArgumentException()
173+
.isThrownBy(() -> this.handler.resolveCsrfTokenValue(this.request, null))
169174
.withMessage("csrfToken cannot be null");
175+
// @formatter:on
170176
}
171177

172178
@Test

0 commit comments

Comments
 (0)