@@ -68,20 +68,29 @@ public void setUp() {
68
68
69
69
@ Test
70
70
public void setSecureRandomWhenNullThenThrowsIllegalArgumentException () {
71
- assertThatIllegalArgumentException ().isThrownBy (() -> this .handler .setSecureRandom (null ))
71
+ // @formatter:off
72
+ assertThatIllegalArgumentException ()
73
+ .isThrownBy (() -> this .handler .setSecureRandom (null ))
72
74
.withMessage ("secureRandom cannot be null" );
75
+ // @formatter:on
73
76
}
74
77
75
78
@ Test
76
79
public void handleWhenExchangeIsNullThenThrowsIllegalArgumentException () {
77
- assertThatIllegalArgumentException ().isThrownBy (() -> this .handler .handle (null , Mono .just (this .token )))
80
+ // @formatter:off
81
+ assertThatIllegalArgumentException ()
82
+ .isThrownBy (() -> this .handler .handle (null , Mono .just (this .token )))
78
83
.withMessage ("exchange cannot be null" );
84
+ // @formatter:on
79
85
}
80
86
81
87
@ Test
82
88
public void handleWhenCsrfTokenIsNullThenThrowsIllegalArgumentException () {
83
- assertThatIllegalArgumentException ().isThrownBy (() -> this .handler .handle (this .exchange , null ))
89
+ // @formatter:off
90
+ assertThatIllegalArgumentException ()
91
+ .isThrownBy (() -> this .handler .handle (this .exchange , null ))
84
92
.withMessage ("csrfToken cannot be null" );
93
+ // @formatter:on
85
94
}
86
95
87
96
@ Test
@@ -123,14 +132,20 @@ public void handleWhenCsrfTokenRequestedTwiceThenCached() {
123
132
124
133
@ Test
125
134
public void resolveCsrfTokenValueWhenExchangeIsNullThenThrowsIllegalArgumentException () {
126
- assertThatIllegalArgumentException ().isThrownBy (() -> this .handler .resolveCsrfTokenValue (null , this .token ))
135
+ // @formatter:off
136
+ assertThatIllegalArgumentException ()
137
+ .isThrownBy (() -> this .handler .resolveCsrfTokenValue (null , this .token ))
127
138
.withMessage ("exchange cannot be null" );
139
+ // @formatter:on
128
140
}
129
141
130
142
@ Test
131
143
public void resolveCsrfTokenValueWhenCsrfTokenIsNullThenThrowsIllegalArgumentException () {
132
- assertThatIllegalArgumentException ().isThrownBy (() -> this .handler .resolveCsrfTokenValue (this .exchange , null ))
144
+ // @formatter:off
145
+ assertThatIllegalArgumentException ()
146
+ .isThrownBy (() -> this .handler .resolveCsrfTokenValue (this .exchange , null ))
133
147
.withMessage ("csrfToken cannot be null" );
148
+ // @formatter:on
134
149
}
135
150
136
151
@ Test
0 commit comments