Use Stream instead of Streams and uncomment reactor test
This commit is contained in:
parent
97af9998d5
commit
b4c3a67d2c
|
|
@ -44,7 +44,7 @@ public abstract class AbstractHttpHandlerIntegrationTests {
|
||||||
return new Object[][] {
|
return new Object[][] {
|
||||||
{new JettyHttpServer()},
|
{new JettyHttpServer()},
|
||||||
{new RxNettyHttpServer()},
|
{new RxNettyHttpServer()},
|
||||||
// {new ReactorHttpServer()},
|
{new ReactorHttpServer()},
|
||||||
{new TomcatHttpServer()},
|
{new TomcatHttpServer()},
|
||||||
{new UndertowHttpServer()}
|
{new UndertowHttpServer()}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import java.util.Map;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import reactor.Mono;
|
import reactor.Mono;
|
||||||
import reactor.io.buffer.Buffer;
|
import reactor.io.buffer.Buffer;
|
||||||
import reactor.rx.Streams;
|
import reactor.rx.Stream;
|
||||||
|
|
||||||
import org.springframework.context.support.StaticApplicationContext;
|
import org.springframework.context.support.StaticApplicationContext;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
|
@ -136,7 +136,7 @@ public class SimpleUrlHandlerMappingIntegrationTests extends AbstractHttpHandler
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
|
public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
|
||||||
return response.setBody(Streams.just(Buffer.wrap("foo").byteBuffer()));
|
return response.setBody(Stream.just(Buffer.wrap("foo").byteBuffer()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -144,7 +144,7 @@ public class SimpleUrlHandlerMappingIntegrationTests extends AbstractHttpHandler
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
|
public Mono<Void> handle(ServerHttpRequest request, ServerHttpResponse response) {
|
||||||
return response.setBody(Streams.just(Buffer.wrap("bar").byteBuffer()));
|
return response.setBody(Stream.just(Buffer.wrap("bar").byteBuffer()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue