2121import static org .junit .jupiter .api .Assertions .assertNotNull ;
2222
2323@ TestMethodOrder (MethodOrderer .OrderAnnotation .class )
24- class WelcomeWebAppTest {
24+ class WebAppConfigurationTest {
2525
2626 @ Test
2727 @ Order (1 )
@@ -124,7 +124,7 @@ void initializerWebConfigClasses() {
124124
125125 @ Test
126126 @ Order (11 )
127- @ DisplayName ("Proper Dispatcher Servlet mapping" )
127+ @ DisplayName ("Dispatcher Servlet mapping is \" / \" " )
128128 void dispatcherServletMapping () {
129129 WebAppInitializerWrapper webAppInitializerWrapper = new WebAppInitializerWrapper ();
130130
@@ -153,7 +153,8 @@ void welcomeControllerMethodIsMarkedAsGetMethod() throws NoSuchMethodException {
153153 @ Order (14 )
154154 @ DisplayName ("WelcomeController Get method is marked properly" )
155155 void welcomeControllerMethodMapping () throws NoSuchMethodException {
156- GetMapping getMapping = WelcomeController .class .getDeclaredMethod ("welcome" ).getAnnotation (GetMapping .class );
156+ GetMapping getMapping = WelcomeController .class
157+ .getDeclaredMethod ("welcome" ).getAnnotation (GetMapping .class );
157158
158159 assertThat (getMapping .value ()).contains ("/welcome" );
159160 }
@@ -162,7 +163,8 @@ void welcomeControllerMethodMapping() throws NoSuchMethodException {
162163 @ Order (15 )
163164 @ DisplayName ("WelcomeController Get method is marked as @ResponseBody" )
164165 void welcomeControllerMethodIsMarkedAsResponseBody () throws NoSuchMethodException {
165- ResponseBody responseBody = WelcomeController .class .getDeclaredMethod ("welcome" ).getAnnotation (ResponseBody .class );
166+ ResponseBody responseBody = WelcomeController .class
167+ .getDeclaredMethod ("welcome" ).getAnnotation (ResponseBody .class );
166168
167169 assertNotNull (responseBody );
168170 }
0 commit comments