commit
e0e9455f78
|
@ -25,7 +25,6 @@ import io.r2dbc.h2.H2ConnectionFactory;
|
|||
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;
|
||||
|
@ -115,14 +114,12 @@ public class R2dbcReactiveOAuth2AuthorizedClientServiceTests {
|
|||
}
|
||||
|
||||
@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);
|
||||
|
@ -153,7 +150,6 @@ public class R2dbcReactiveOAuth2AuthorizedClientServiceTests {
|
|||
}
|
||||
|
||||
@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();
|
||||
|
@ -190,7 +186,6 @@ public class R2dbcReactiveOAuth2AuthorizedClientServiceTests {
|
|||
}
|
||||
|
||||
@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);
|
||||
|
@ -249,7 +244,6 @@ public class R2dbcReactiveOAuth2AuthorizedClientServiceTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
@Disabled // until https://github.com/reactor/reactor-core/issues/3307 is resolved
|
||||
public void saveAuthorizedClientWhenSaveClientWithExistingPrimaryKeyThenUpdate() {
|
||||
// Given a saved authorized client
|
||||
Authentication principal = createPrincipal();
|
||||
|
@ -303,7 +297,6 @@ public class R2dbcReactiveOAuth2AuthorizedClientServiceTests {
|
|||
}
|
||||
|
||||
@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);
|
||||
|
|
Loading…
Reference in New Issue