diff --git a/spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandlerTests.java b/spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandlerTests.java index fe80a41bcc..4b93f15cc6 100644 --- a/spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandlerTests.java +++ b/spring-web-reactive/src/test/java/org/springframework/http/server/reactive/ErrorHandlingHttpHandlerTests.java @@ -53,7 +53,7 @@ public class ErrorHandlingHttpHandlerTests { @Test public void handleErrorSignal() throws Exception { - HttpExceptionHandler exceptionHandler = new UnresolvedExceptionHandler(); + HttpExceptionHandler exceptionHandler = new HttpStatusExceptionHandler(HttpStatus.INTERNAL_SERVER_ERROR); HttpHandler targetHandler = new TestHttpHandler(new IllegalStateException("boo")); HttpHandler handler = new ErrorHandlingHttpHandler(targetHandler, exceptionHandler);