Skip to content

Commit 023991c

Browse files
committed
A test to make sure that the auto-configuration is imported.
1 parent 24b1bc4 commit 023991c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.springframework.boot.autoconfigure.mustache.MustacheAutoConfiguration;
2626
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
2727
import org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration;
28+
import org.springframework.boot.autoconfigure.web.reactive.error.ErrorWebFluxAutoConfiguration;
2829
import org.springframework.boot.test.autoconfigure.web.reactive.WebFluxTest;
2930
import org.springframework.context.ApplicationContext;
3031
import org.springframework.test.context.junit4.SpringRunner;
@@ -37,6 +38,7 @@
3738
*
3839
* @author Stephane Nicoll
3940
* @author Artsiom Yudovin
41+
* @author Ali Dehghani
4042
*/
4143
@RunWith(SpringRunner.class)
4244
@WebFluxTest
@@ -75,4 +77,10 @@ public void thymeleafAutoConfigurationIsImported() {
7577
.has(importedAutoConfiguration(ThymeleafAutoConfiguration.class));
7678
}
7779

80+
@Test
81+
public void errorWebFluxAutoConfigurationIsImported() {
82+
assertThat(this.applicationContext)
83+
.has(importedAutoConfiguration(ErrorWebFluxAutoConfiguration.class));
84+
}
85+
7886
}

0 commit comments

Comments
 (0)