Skip to content

Commit 6f77b9e

Browse files
committed
Fixed a failing test.
Sine we're now importing the ErrorWebFluxAutoConfiguration, we have to register the custom exception handler with a more priority, in order to keep previous tests green.
1 parent ae10888 commit 6f77b9e

File tree

1 file changed

+3
-0
lines changed
  • spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient

1 file changed

+3
-0
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/reactive/webclient/ExampleWebExceptionHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import reactor.core.publisher.Mono;
1919

2020
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
21+
import org.springframework.core.Ordered;
22+
import org.springframework.core.annotation.Order;
2123
import org.springframework.http.HttpStatus;
2224
import org.springframework.stereotype.Component;
2325
import org.springframework.web.server.ServerWebExchange;
@@ -30,6 +32,7 @@
3032
* @author Ali Dehghani
3133
*/
3234
@Component
35+
@Order(Ordered.HIGHEST_PRECEDENCE)
3336
public class ExampleWebExceptionHandler implements WebExceptionHandler {
3437

3538
@Override

0 commit comments

Comments
 (0)