File tree Expand file tree Collapse file tree 2 files changed +12
-119
lines changed
springdoc-openapi-webflux-core/src/test
java/test/org/springdoc/api/app76 Expand file tree Collapse file tree 2 files changed +12
-119
lines changed Original file line number Diff line number Diff line change 2323
2424package test .org .springdoc .api .app76 ;
2525
26+ import org .junit .jupiter .api .Test ;
27+ import org .springdoc .core .Constants ;
2628import test .org .springdoc .api .AbstractSpringDocTest ;
2729
2830import org .springframework .test .context .TestPropertySource ;
@@ -33,4 +35,14 @@ public class SpringDocApp76Test extends AbstractSpringDocTest {
3335 public SpringDocApp76Test () {
3436 this .groupName = "/actuator" ;
3537 }
38+
39+
40+ @ Test
41+ public void testApp () throws Exception {
42+ webTestClient .get ().uri (Constants .DEFAULT_API_DOCS_URL + groupName ).exchange ().expectStatus ().isOk ().expectBody ()
43+ .jsonPath ("$.openapi" ).isEqualTo ("3.0.1" )
44+ .jsonPath ("$.paths./actuator/info.get.operationId" ).exists ()
45+ .jsonPath ("$.paths./actuator/health.get.operationId" ).exists ();
46+ }
47+
3648}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments