File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
web/src/test/java/org/springframework/security/web/csrf Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,20 @@ public void handleWhenCsrfTokenRequestedTwiceThenCached() {
159
159
160
160
@ Test
161
161
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 ))
163
165
.withMessage ("request cannot be null" );
166
+ // @formatter:on
164
167
}
165
168
166
169
@ Test
167
170
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 ))
169
174
.withMessage ("csrfToken cannot be null" );
175
+ // @formatter:on
170
176
}
171
177
172
178
@ Test
You can’t perform that action at this time.
0 commit comments