summaryrefslogtreecommitdiffstats
path: root/mod/runtimeapi/runtime-web/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'mod/runtimeapi/runtime-web/src/test/java')
-rw-r--r--mod/runtimeapi/runtime-web/src/test/java/org/onap/dcae/runtime/web/controllers/TestFlowGraphController.java9
1 files changed, 8 insertions, 1 deletions
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..60ff810 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 {
@@ -79,6 +80,12 @@ public class TestFlowGraphController {
}
@Test
+ public void testSwaggerUi() throws Exception {
+ mockMvc.perform(get("/swagger-ui.html"))
+ .andExpect(status().isOk());
+ }
+
+ @Test
public void testInitializeGraph() throws Exception{
graphRequest.setMain(true);
mockMvc.perform(get("/api/graph/main"))