34
34
35
35
import static org .assertj .core .api .Assertions .assertThat ;
36
36
import static org .mockito .Mockito .mock ;
37
- import static org .mockito .Mockito .verifyZeroInteractions ;
37
+ import static org .mockito .Mockito .verifyNoInteractions ;
38
38
39
39
/**
40
40
* Tests for {@link ResourceServerProperties}.
@@ -68,7 +68,7 @@ public void validateWhenClientIdNullShouldNotFail() throws Exception {
68
68
this .properties = new ResourceServerProperties (null , "secret" );
69
69
setListableBeanFactory ();
70
70
this .properties .validate ();
71
- verifyZeroInteractions (this .errors );
71
+ verifyNoInteractions (this .errors );
72
72
}
73
73
74
74
@ Test
@@ -98,15 +98,15 @@ public void validateWhenJwkKeySetUriProvidedShouldSucceed() throws Exception {
98
98
this .properties .getJwk ().setKeySetUri ("https://idp.example.com/token_keys" );
99
99
setListableBeanFactory ();
100
100
this .properties .validate ();
101
- verifyZeroInteractions (this .errors );
101
+ verifyNoInteractions (this .errors );
102
102
}
103
103
104
104
@ Test
105
105
public void validateWhenKeyValuePresentShouldSucceed () throws Exception {
106
106
this .properties .getJwt ().setKeyValue ("my-key" );
107
107
setListableBeanFactory ();
108
108
this .properties .validate ();
109
- verifyZeroInteractions (this .errors );
109
+ verifyNoInteractions (this .errors );
110
110
}
111
111
112
112
@ Test
@@ -115,7 +115,7 @@ public void validateWhenKeysUriOrValuePresentAndUserInfoAbsentShouldNotFail() th
115
115
this .properties .getJwk ().setKeySetUri ("https://idp.example.com/token_keys" );
116
116
setListableBeanFactory ();
117
117
this .properties .validate ();
118
- verifyZeroInteractions (this .errors );
118
+ verifyNoInteractions (this .errors );
119
119
}
120
120
121
121
@ Test
@@ -132,15 +132,15 @@ public void validateWhenTokenUriConfiguredShouldNotFail() throws Exception {
132
132
this .properties .setTokenInfoUri ("https://idp.example.com/userinfo" );
133
133
setListableBeanFactory ();
134
134
this .properties .validate ();
135
- verifyZeroInteractions (this .errors );
135
+ verifyNoInteractions (this .errors );
136
136
}
137
137
138
138
@ Test
139
139
public void validateWhenUserInfoUriConfiguredShouldNotFail () throws Exception {
140
140
this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
141
141
setListableBeanFactory ();
142
142
this .properties .validate ();
143
- verifyZeroInteractions (this .errors );
143
+ verifyNoInteractions (this .errors );
144
144
}
145
145
146
146
@ Test
@@ -160,7 +160,7 @@ public void validateWhenTokenUriAbsentAndClientSecretAbsentShouldNotFail() throw
160
160
this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
161
161
setListableBeanFactory ();
162
162
this .properties .validate ();
163
- verifyZeroInteractions (this .errors );
163
+ verifyNoInteractions (this .errors );
164
164
}
165
165
166
166
@ Test
@@ -171,7 +171,7 @@ public void validateWhenTokenUriNotPreferredAndClientSecretAbsentShouldNotFail()
171
171
this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
172
172
setListableBeanFactory ();
173
173
this .properties .validate ();
174
- verifyZeroInteractions (this .errors );
174
+ verifyNoInteractions (this .errors );
175
175
}
176
176
177
177
private void setListableBeanFactory () {
0 commit comments