diff options
Diffstat (limited to 'policy-management/src/test')
-rw-r--r-- | policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java b/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java index feeb25ed..b8561c5c 100644 --- a/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java +++ b/policy-management/src/test/java/org/onap/policy/drools/server/restful/test/RestManagerTest.java @@ -337,6 +337,17 @@ public class RestManagerTest { } @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; CloseableHttpResponse response; |