Rename Mono#otherwise[Empty] to switch[onError/IfEmpty]
Issue: SPR-15318
This commit is contained in:
@@ -96,7 +96,7 @@ public class ServerHttpResponseTests {
|
||||
public void writeWithError() throws Exception {
|
||||
TestServerHttpResponse response = new TestServerHttpResponse();
|
||||
IllegalStateException error = new IllegalStateException("boo");
|
||||
response.writeWith(Flux.error(error)).otherwise(ex -> Mono.empty()).block();
|
||||
response.writeWith(Flux.error(error)).switchOnError(ex -> Mono.empty()).block();
|
||||
|
||||
assertFalse(response.statusCodeWritten);
|
||||
assertFalse(response.headersWritten);
|
||||
|
||||
Reference in New Issue
Block a user