Skip to content

Commit ae10888

Browse files
committed
Revert.
1 parent d90d592 commit ae10888

File tree

3 files changed

+2
-92
lines changed

3 files changed

+2
-92
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
2121
import org.springframework.http.HttpStatus;
22+
import org.springframework.stereotype.Component;
2223
import org.springframework.web.server.ServerWebExchange;
2324
import org.springframework.web.server.WebExceptionHandler;
2425

@@ -28,6 +29,7 @@
2829
* @author Madhura Bhave
2930
* @author Ali Dehghani
3031
*/
32+
@Component
3133
public class ExampleWebExceptionHandler implements WebExceptionHandler {
3234

3335
@Override

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121

2222
import org.springframework.beans.factory.annotation.Autowired;
2323
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
24-
import org.springframework.boot.test.context.TestConfiguration;
25-
import org.springframework.context.annotation.Bean;
26-
import org.springframework.core.Ordered;
27-
import org.springframework.core.annotation.Order;
2824
import org.springframework.security.test.context.support.WithMockUser;
2925
import org.springframework.test.context.junit4.SpringRunner;
3026
import org.springframework.test.web.reactive.server.WebTestClient;
@@ -33,7 +29,6 @@
3329
* Tests for {@link WebFluxTest} when no explicit controller is defined.
3430
*
3531
* @author Stephane Nicoll
36-
* @author Ali Dehghani
3732
*/
3833
@RunWith(SpringRunner.class)
3934
@WithMockUser
@@ -65,19 +60,4 @@ public void shouldFindJsonController() {
6560
this.webClient.get().uri("/json").exchange().expectStatus().isOk();
6661
}
6762

68-
/**
69-
* A test configuration to register a custom exception handler. Since the registered
70-
* handler has the highest possible priority, the default exception handler provided
71-
* by the Spring Boot will not get a chance to handle exceptions.
72-
*/
73-
@TestConfiguration
74-
static class TestConfig {
75-
76-
@Bean
77-
@Order(Ordered.HIGHEST_PRECEDENCE)
78-
ExampleWebExceptionHandler exampleWebExceptionHandler() {
79-
return new ExampleWebExceptionHandler();
80-
}
81-
}
82-
8363
}

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

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)