Removing Drools-pdp swagger annotations
[policy/drools-pdp.git] / policy-management / src / test / java / org / onap / policy / drools / server / restful / test / RestManagerTest.java
index feeb25e..b8561c5 100644 (file)
@@ -336,6 +336,17 @@ public class RestManagerTest {
                 "[{f:v}]", ContentType.APPLICATION_JSON);
     }
 
+    @Test
+    public void testGetSwagger() throws IOException {
+        HttpGet httpGet;
+        CloseableHttpResponse response;
+        httpGet = new HttpGet(HOST_URL + "/engine/swagger");
+        response = client.execute(httpGet);
+        logger.info(httpGet.getRequestLine() + " response code: {}", response.getStatusLine().getStatusCode());
+        assertEquals(200, response.getStatusLine().getStatusCode());
+        httpGet.releaseConnection();
+    }
+
     @Test
     public void testGet() throws IOException {
         HttpGet httpGet;