Revert "Temporarily disable rsocket-routing-broker integration"
This reverts commit 63f655fb45.
This commit is contained in:
@@ -18,8 +18,8 @@ package org.springframework.cloud.function.rsocket;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
import io.rsocket.routing.client.spring.RoutingMetadata;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import reactor.core.publisher.Mono;
|
||||
import reactor.test.StepVerifier;
|
||||
@@ -39,7 +39,6 @@ import org.springframework.util.SocketUtils;
|
||||
* @author Oleg Zhurakousky
|
||||
* @since 3.1
|
||||
*/
|
||||
@Disabled
|
||||
public class RoutingBrokerTests {
|
||||
|
||||
ConfigurableApplicationContext functionContext;
|
||||
@@ -78,19 +77,19 @@ public class RoutingBrokerTests {
|
||||
|
||||
@Test
|
||||
public void testRoutingWithMessage() throws Exception {
|
||||
// this.setup(false);
|
||||
// RSocketRequester requester = clientContext.getBean(RSocketRequester.class);
|
||||
// RoutingMetadata metadata = clientContext.getBean(RoutingMetadata.class);
|
||||
// Mono<String> result = requester.route("uppercase") // used to find function
|
||||
// .metadata(metadata.address("samplefn"))
|
||||
// .data("\"hello\"")
|
||||
// .retrieveMono(String.class);
|
||||
//
|
||||
// StepVerifier
|
||||
// .create(result)
|
||||
// .expectNext("HELLO")
|
||||
// .expectComplete()
|
||||
// .verify();
|
||||
this.setup(false);
|
||||
RSocketRequester requester = clientContext.getBean(RSocketRequester.class);
|
||||
RoutingMetadata metadata = clientContext.getBean(RoutingMetadata.class);
|
||||
Mono<String> result = requester.route("uppercase") // used to find function
|
||||
.metadata(metadata.address("samplefn"))
|
||||
.data("\"hello\"")
|
||||
.retrieveMono(String.class);
|
||||
|
||||
StepVerifier
|
||||
.create(result)
|
||||
.expectNext("HELLO")
|
||||
.expectComplete()
|
||||
.verify();
|
||||
}
|
||||
|
||||
private void setup(boolean routingWithProperty) {
|
||||
|
||||
Reference in New Issue
Block a user