Skip to content

Commit 7bd6dec

Browse files
committed
Revert "Disable Some R2dbc Tests"
This reverts commit 8131799. Closes gh-12339
1 parent b9f9139 commit 7bd6dec

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/R2dbcReactiveOAuth2AuthorizedClientServiceTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import io.r2dbc.spi.ConnectionFactory;
2626
import io.r2dbc.spi.Result;
2727
import org.junit.jupiter.api.BeforeEach;
28-
import org.junit.jupiter.api.Disabled;
2928
import org.junit.jupiter.api.Test;
3029
import reactor.core.publisher.Flux;
3130
import reactor.core.publisher.Mono;
@@ -115,14 +114,12 @@ public void loadAuthorizedClientWhenPrincipalNameIsNullThenThrowIllegalArgumentE
115114
}
116115

117116
@Test
118-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
119117
public void loadAuthorizedClientWhenDoesNotExistThenReturnNull() {
120118
this.authorizedClientService.loadAuthorizedClient("registration-not-found", "principalName")
121119
.as(StepVerifier::create).expectNextCount(0).verifyComplete();
122120
}
123121

124122
@Test
125-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
126123
public void loadAuthorizedClientWhenExistsThenReturnAuthorizedClient() {
127124
Authentication principal = createPrincipal();
128125
OAuth2AuthorizedClient expected = createAuthorizedClient(principal, this.clientRegistration);
@@ -153,7 +150,6 @@ public void loadAuthorizedClientWhenExistsThenReturnAuthorizedClient() {
153150
}
154151

155152
@Test
156-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
157153
public void loadAuthorizedClientWhenExistsButNotFoundInClientRegistrationRepositoryThenThrowDataRetrievalFailureException() {
158154
given(this.clientRegistrationRepository.findByRegistrationId(any())).willReturn(Mono.empty());
159155
Authentication principal = createPrincipal();
@@ -190,7 +186,6 @@ public void saveAuthorizedClientWhenPrincipalIsNullThenThrowIllegalArgumentExcep
190186
}
191187

192188
@Test
193-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
194189
public void saveAuthorizedClientWhenSaveThenLoadReturnsSaved() {
195190
Authentication principal = createPrincipal();
196191
final OAuth2AuthorizedClient expected = createAuthorizedClient(principal, this.clientRegistration);
@@ -249,7 +244,6 @@ public void saveAuthorizedClientWhenSaveThenLoadReturnsSaved() {
249244
}
250245

251246
@Test
252-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
253247
public void saveAuthorizedClientWhenSaveClientWithExistingPrimaryKeyThenUpdate() {
254248
// Given a saved authorized client
255249
Authentication principal = createPrincipal();
@@ -303,7 +297,6 @@ public void removeAuthorizedClientWhenPrincipalNameIsNullThenThrowIllegalArgumen
303297
}
304298

305299
@Test
306-
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
307300
public void removeAuthorizedClientWhenExistsThenRemoved() {
308301
Authentication principal = createPrincipal();
309302
OAuth2AuthorizedClient authorizedClient = createAuthorizedClient(principal, this.clientRegistration);

0 commit comments

Comments
 (0)