mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Rename Mono#otherwise[Empty] to switch[onError/IfEmpty]
Issue: SPR-15318
This commit is contained in:
+1
-1
@@ -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