Skip to content

Commit

Permalink
Revert "Disable Some R2dbc Tests"
Browse files Browse the repository at this point in the history
This reverts commit 8131799.

Closes gh-12339
  • Loading branch information
jzheaux committed Dec 19, 2022
1 parent b9f9139 commit 7bd6dec
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import io.r2dbc.spi.ConnectionFactory;
import io.r2dbc.spi.Result;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -115,14 +114,12 @@ public void loadAuthorizedClientWhenPrincipalNameIsNullThenThrowIllegalArgumentE
}

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

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

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

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

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

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

0 comments on commit 7bd6dec

Please sign in to comment.