X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=mod%2Fruntimeapi%2Fruntime-web%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdcae%2Fruntime%2Fweb%2Fcontrollers%2FTestFlowGraphController.java;h=942d2fdb75ed44534ee5047d85e07b9fbc2e9146;hb=51710092beee572f3b857c0f17a86736b0a9bdfd;hp=dbbfd8d7a1e287c69e5a7c74097aa198933291df;hpb=25cd97d9626dcc1cd3dd82b3ad5c934cdb137342;p=dcaegen2%2Fplatform.git diff --git a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java index dbbfd8d..942d2fd 100644 --- a/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java +++ b/mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java @@ -29,6 +29,7 @@ import org.onap.dcae.runtime.web.TestUtils; import org.onap.dcae.runtime.web.models.Action; import org.onap.dcae.runtime.web.models.DistributeGraphRequest; import org.onap.dcae.runtime.web.models.GraphRequest; +import org.onap.dcae.runtime.web.RuntimeapiApplication; import org.onap.dcae.runtime.web.service.GraphServiceImpl; import org.onap.dcae.runtime.web.service.BlueprintInventory; import org.junit.Before; @@ -50,7 +51,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers. import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; @RunWith(SpringRunner.class) -@SpringBootTest +@SpringBootTest(classes=RuntimeapiApplication.class) @AutoConfigureMockMvc public class TestFlowGraphController { @@ -78,6 +79,12 @@ public class TestFlowGraphController { .applyTo(blueprintInventory); } + @Test + public void testSwaggerUi() throws Exception { + mockMvc.perform(get("/swagger-ui/index.html")) + .andExpect(status().isOk()); + } + @Test public void testInitializeGraph() throws Exception{ graphRequest.setMain(true);