Skip to content
Permalink
Browse files
Use the non-deprecated API method to upload catalog items
  • Loading branch information
tbouron committed Mar 24, 2017
1 parent fa2d7b3 commit b68043105891b1ea2cb1792d971a1cbcc427a1e5
Showing 1 changed file with 1 addition and 1 deletion.
@@ -114,7 +114,7 @@ public void testCatalogApiLocations() throws Exception {
}

public void testCatalogCreate()throws Exception {
final Response response = api.getCatalogApi().create(getFileContentsAsString("catalog/test-catalog.bom"));
final Response response = api.getCatalogApi().createFromUpload(getFileContentsAsString("catalog/test-catalog.bom").getBytes());
Asserts.assertEquals(response.getStatus(), 201);
Asserts.assertStringContains(String.valueOf(response.getEntity()), "simple-tomcat:1.0");
}

0 comments on commit b680431

Please sign in to comment.