3434
3535import static org .assertj .core .api .Assertions .assertThat ;
3636import static org .mockito .Mockito .mock ;
37- import static org .mockito .Mockito .verifyZeroInteractions ;
37+ import static org .mockito .Mockito .verifyNoInteractions ;
3838
3939/**
4040 * Tests for {@link ResourceServerProperties}.
@@ -68,7 +68,7 @@ public void validateWhenClientIdNullShouldNotFail() throws Exception {
6868 this .properties = new ResourceServerProperties (null , "secret" );
6969 setListableBeanFactory ();
7070 this .properties .validate ();
71- verifyZeroInteractions (this .errors );
71+ verifyNoInteractions (this .errors );
7272 }
7373
7474 @ Test
@@ -98,15 +98,15 @@ public void validateWhenJwkKeySetUriProvidedShouldSucceed() throws Exception {
9898 this .properties .getJwk ().setKeySetUri ("https://idp.example.com/token_keys" );
9999 setListableBeanFactory ();
100100 this .properties .validate ();
101- verifyZeroInteractions (this .errors );
101+ verifyNoInteractions (this .errors );
102102 }
103103
104104 @ Test
105105 public void validateWhenKeyValuePresentShouldSucceed () throws Exception {
106106 this .properties .getJwt ().setKeyValue ("my-key" );
107107 setListableBeanFactory ();
108108 this .properties .validate ();
109- verifyZeroInteractions (this .errors );
109+ verifyNoInteractions (this .errors );
110110 }
111111
112112 @ Test
@@ -115,7 +115,7 @@ public void validateWhenKeysUriOrValuePresentAndUserInfoAbsentShouldNotFail() th
115115 this .properties .getJwk ().setKeySetUri ("https://idp.example.com/token_keys" );
116116 setListableBeanFactory ();
117117 this .properties .validate ();
118- verifyZeroInteractions (this .errors );
118+ verifyNoInteractions (this .errors );
119119 }
120120
121121 @ Test
@@ -132,15 +132,15 @@ public void validateWhenTokenUriConfiguredShouldNotFail() throws Exception {
132132 this .properties .setTokenInfoUri ("https://idp.example.com/userinfo" );
133133 setListableBeanFactory ();
134134 this .properties .validate ();
135- verifyZeroInteractions (this .errors );
135+ verifyNoInteractions (this .errors );
136136 }
137137
138138 @ Test
139139 public void validateWhenUserInfoUriConfiguredShouldNotFail () throws Exception {
140140 this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
141141 setListableBeanFactory ();
142142 this .properties .validate ();
143- verifyZeroInteractions (this .errors );
143+ verifyNoInteractions (this .errors );
144144 }
145145
146146 @ Test
@@ -160,7 +160,7 @@ public void validateWhenTokenUriAbsentAndClientSecretAbsentShouldNotFail() throw
160160 this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
161161 setListableBeanFactory ();
162162 this .properties .validate ();
163- verifyZeroInteractions (this .errors );
163+ verifyNoInteractions (this .errors );
164164 }
165165
166166 @ Test
@@ -171,7 +171,7 @@ public void validateWhenTokenUriNotPreferredAndClientSecretAbsentShouldNotFail()
171171 this .properties .setUserInfoUri ("https://idp.example.com/userinfo" );
172172 setListableBeanFactory ();
173173 this .properties .validate ();
174- verifyZeroInteractions (this .errors );
174+ verifyNoInteractions (this .errors );
175175 }
176176
177177 private void setListableBeanFactory () {
0 commit comments