Skip to content

Commit

Permalink
Use the non-deprecated API method to upload catalog items
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouron committed Mar 24, 2017
1 parent fa2d7b3 commit b680431
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit b680431

Please sign in to comment.