master
Sebastien Deleuze 8 years ago
parent 97155f1a30
commit 3f80b4ab2e
  1. 2
      spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ServerHttpResponseTests.java

@ -57,7 +57,7 @@ public class ServerHttpResponseTests {
}
@Test
public void writeWithWithComplete() throws Exception {
public void writeWithError() throws Exception {
TestServerHttpResponse response = new TestServerHttpResponse();
IllegalStateException error = new IllegalStateException("boo");
response.writeWith(Flux.error(error)).otherwise(ex -> Mono.empty()).get();

Loading…
Cancel
Save