Additional tests for VNF image extraction
[aai/babel.git] / src / test / java / org / onap / aai / babel / service / TestGenerateArtifactsServiceImpl.java
index 5bd5484..599b3ff 100644 (file)
@@ -155,6 +155,14 @@ public class TestGenerateArtifactsServiceImpl {
         String jsonString = csar.getJsonRequest();
         return invokeService(jsonString);
     }
+
+    /**
+     * Create a (mocked) HTTPS request and invoke the Babel generate artifacts API.
+     *
+     * @param jsonString the JSON request
+     * @return the Response from the HTTP API
+     * @throws URISyntaxException if the URI cannot be created
+     */
     private Response invokeService(String jsonString) throws URISyntaxException {
         UriInfo mockUriInfo = Mockito.mock(UriInfo.class);
         Mockito.when(mockUriInfo.getRequestUri()).thenReturn(new URI("/validate")); // NOSONAR (mocked)