Skip to content

Commit 3a4dbe9

Browse files
committed
Invoke specific tests in WebMvcAutoConfigurationTest
Replace the generic testWebEndpoints() call with explicit this.testHelloWorld() and this.testGreeting() invocations to run specific endpoint checks. Also remove the now-unused TestController import. Retains the webMvcExtensionConfiguration null assertion and improves clarity of which endpoints are tested.
1 parent 62249a7 commit 3a4dbe9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

microsphere-spring-boot-webmvc/src/test/java/io/microsphere/spring/boot/webmvc/autoconfigure/WebMvcAutoConfigurationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
package io.microsphere.spring.boot.webmvc.autoconfigure;
1919

2020

21-
import io.microsphere.spring.test.web.controller.TestController;
2221
import io.microsphere.spring.test.webmvc.AbstractWebMvcTest;
2322
import io.microsphere.spring.webmvc.annotation.WebMvcExtensionConfiguration;
2423
import org.junit.jupiter.api.Test;
@@ -47,6 +46,7 @@ class WebMvcAutoConfigurationTest extends AbstractWebMvcTest {
4746
@Test
4847
void test() throws Exception {
4948
assertNotNull(webMvcExtensionConfiguration);
50-
testWebEndpoints();
49+
this.testHelloWorld();
50+
this.testGreeting();
5151
}
5252
}

0 commit comments

Comments
 (0)