File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
src/test/java/org/example/openapi Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 105105 },
106106 {
107107 "type" : " java" ,
108- "name" : " Spring Boot-OpenApiApplication<openapi >" ,
108+ "name" : " Spring Boot-OpenApiApplication<open-api-spring-boot >" ,
109109 "request" : " launch" ,
110110 "cwd" : " ${workspaceFolder}" ,
111111 "mainClass" : " org.example.openapi.OpenApiApplication" ,
112- "projectName" : " openapi " ,
112+ "projectName" : " open-api-spring-boot " ,
113113 "args" : " " ,
114114 "envFile" : " ${workspaceFolder}/.env"
115115 }
Original file line number Diff line number Diff line change 132132 </supportingFilesToGenerate >
133133 <configOptions >
134134 <delegatePattern >true</delegatePattern >
135+ <performBeanValidation >true</performBeanValidation >
135136 <useSpringBoot3 >true</useSpringBoot3 >
136137 <!-- <async>true</async> -->
137138 <serializableModel >true</serializableModel >
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ class OpenApiApplicationTest {
1515
1616 @ Autowired protected MockMvc mockMvc ;
1717
18+ @ Test
19+ public void testLoadingSwagger () throws Exception {
20+ this .mockMvc .perform (get ("/" ))
21+ .andExpect (status ().isFound ());
22+ }
23+
1824 @ Test
1925 public void whenReadAll_thenStatusIsNotImplemented () throws Exception {
2026 this .mockMvc .perform (get ("/api/customers" ))
You can’t perform that action at this time.
0 commit comments