Skip to content

Commit 15a5804

Browse files
Merge branch 'main' into renovate/jakarta.xml.bind-jakarta.xml.bind-api-4.x
2 parents 6b8563c + c8e50d2 commit 15a5804

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
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
}

open-api-spring-boot/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
</supportingFilesToGenerate>
133133
<configOptions>
134134
<delegatePattern>true</delegatePattern>
135+
<performBeanValidation>true</performBeanValidation>
135136
<useSpringBoot3>true</useSpringBoot3>
136137
<!-- <async>true</async> -->
137138
<serializableModel>true</serializableModel>

open-api-spring-boot/src/test/java/org/example/openapi/OpenApiApplicationTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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"))

0 commit comments

Comments
 (0)