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;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
@RunWith(SpringRunner.class)
-@SpringBootTest
+@SpringBootTest(classes=RuntimeapiApplication.class)
@AutoConfigureMockMvc
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);