Skip to content

Commit

Permalink
Fixed a failing test.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alimate committed Mar 26, 2019
1 parent ae10888 commit 6f77b9e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import reactor.core.publisher.Mono;

import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
Expand All @@ -30,6 +32,7 @@
* @author Ali Dehghani
*/
@Component
@Order(Ordered.HIGHEST_PRECEDENCE)
public class ExampleWebExceptionHandler implements WebExceptionHandler {

@Override
Expand Down

0 comments on commit 6f77b9e

Please sign in to comment.