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 105
105
},
106
106
{
107
107
"type" : " java" ,
108
- "name" : " Spring Boot-OpenApiApplication<openapi >" ,
108
+ "name" : " Spring Boot-OpenApiApplication<open-api-spring-boot >" ,
109
109
"request" : " launch" ,
110
110
"cwd" : " ${workspaceFolder}" ,
111
111
"mainClass" : " org.example.openapi.OpenApiApplication" ,
112
- "projectName" : " openapi " ,
112
+ "projectName" : " open-api-spring-boot " ,
113
113
"args" : " " ,
114
114
"envFile" : " ${workspaceFolder}/.env"
115
115
}
Original file line number Diff line number Diff line change 132
132
</supportingFilesToGenerate >
133
133
<configOptions >
134
134
<delegatePattern >true</delegatePattern >
135
+ <performBeanValidation >true</performBeanValidation >
135
136
<useSpringBoot3 >true</useSpringBoot3 >
136
137
<!-- <async>true</async> -->
137
138
<serializableModel >true</serializableModel >
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ class OpenApiApplicationTest {
15
15
16
16
@ Autowired protected MockMvc mockMvc ;
17
17
18
+ @ Test
19
+ public void testLoadingSwagger () throws Exception {
20
+ this .mockMvc .perform (get ("/" ))
21
+ .andExpect (status ().isFound ());
22
+ }
23
+
18
24
@ Test
19
25
public void whenReadAll_thenStatusIsNotImplemented () throws Exception {
20
26
this .mockMvc .perform (get ("/api/customers" ))
You can’t perform that action at this time.
0 commit comments