Upgrade to Spring Framework 5.3.0-SNAPSHOT
This commit also switches to RSocket SNAPSHOTs and updates the repository configuration to rely on "libs-snapshot", since the RSocket SNAPSHOTs are mirrored there. See gh-22640
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package smoketest.rsocket;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
import io.rsocket.metadata.WellKnownMimeType;
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -43,7 +41,7 @@ public class SampleRSocketApplicationTests {
|
||||
|
||||
@Test
|
||||
void unauthenticatedAccessToRSocketEndpoint() {
|
||||
RSocketRequester requester = this.builder.connectTcp("localhost", this.port).block(Duration.ofSeconds(5));
|
||||
RSocketRequester requester = this.builder.tcp("localhost", this.port);
|
||||
Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class);
|
||||
StepVerifier.create(result).expectErrorMessage("Access Denied").verify();
|
||||
}
|
||||
@@ -54,7 +52,7 @@ public class SampleRSocketApplicationTests {
|
||||
.rsocketStrategies((builder) -> builder.encoder(new SimpleAuthenticationEncoder()))
|
||||
.setupMetadata(new UsernamePasswordMetadata("user", "password"),
|
||||
MimeTypeUtils.parseMimeType(WellKnownMimeType.MESSAGE_RSOCKET_AUTHENTICATION.getString()))
|
||||
.connectTcp("localhost", this.port).block(Duration.ofSeconds(5));
|
||||
.tcp("localhost", this.port);
|
||||
Mono<Project> result = requester.route("find.project.spring-boot").retrieveMono(Project.class);
|
||||
StepVerifier.create(result)
|
||||
.assertNext((project) -> Assertions.assertThat(project.getName()).isEqualTo("spring-boot"))
|
||||
|
||||
Reference in New Issue
Block a user