Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 79145ca

Browse files
committed
Update to Spring Boot 2.6.0-RC1
Closes gh-350
1 parent 348b6a1 commit 79145ca

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version=2.6.0-SNAPSHOT
22
springSocialVersion=1.1.6.RELEASE
3-
springBootVersion=2.6.0-M3
3+
springBootVersion=2.6.0-RC1

spring-security-oauth2-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/ResourceServerPropertiesTests.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import static org.assertj.core.api.Assertions.assertThat;
3636
import 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() {

spring-security-oauth2-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/sso/CustomRestTemplateBasicOAuth2SsoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
import static org.assertj.core.api.Assertions.assertThat;
3838
import static org.mockito.Mockito.mock;
39-
import static org.mockito.Mockito.verifyZeroInteractions;
39+
import static org.mockito.Mockito.verifyNoInteractions;
4040

4141
/**
4242
* Test to validate that a custom {@link RestTemplate} can be defined with OAuth2 SSO.
@@ -62,7 +62,7 @@ public class CustomRestTemplateBasicOAuth2SsoConfigurationTests {
6262
@Test
6363
public void customRestTemplateCanBePrimary() {
6464
RestTemplate restTemplate = this.restTemplate.getIfAvailable();
65-
verifyZeroInteractions(restTemplate);
65+
verifyNoInteractions(restTemplate);
6666
assertThat(this.applicationContext.getBeansOfType(RestTemplate.class)).hasSize(1);
6767
}
6868

0 commit comments

Comments
 (0)