Skip to content

Commit

Permalink
Fixed: DataverseFeaturedItemsIT
Browse files Browse the repository at this point in the history
  • Loading branch information
GPortas committed Jan 24, 2025
1 parent 6f182d2 commit 69de6dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void testDeleteFeaturedItem() {
// Should return not found when passing incorrect item id
Response deleteFeatureItemResponse = UtilIT.deleteDataverseFeaturedItem(100000L, apiToken);
deleteFeatureItemResponse.then()
.body("message", equalTo(MessageFormat.format(BundleUtil.getStringFromBundle("dataverseFeaturedItems.errors.notFound"), featuredItemId)))
.body("message", equalTo(MessageFormat.format(BundleUtil.getStringFromBundle("dataverseFeaturedItems.errors.notFound"), 100000L)))
.assertThat().statusCode(NOT_FOUND.getStatusCode());

// Should return unauthorized when passing correct id and user does not have permissions
Expand Down Expand Up @@ -57,7 +57,7 @@ public void testUpdateFeaturedItem() {
// Should return not found when passing incorrect item id
Response updateFeatureItemResponse = UtilIT.updateDataverseFeaturedItem(100000L, "updatedTitle", 1, false, null, apiToken);
updateFeatureItemResponse.then()
.body("message", equalTo(MessageFormat.format(BundleUtil.getStringFromBundle("dataverseFeaturedItems.errors.notFound"), featuredItemId)))
.body("message", equalTo(MessageFormat.format(BundleUtil.getStringFromBundle("dataverseFeaturedItems.errors.notFound"), 100000L)))
.assertThat().statusCode(NOT_FOUND.getStatusCode());

// Should return unauthorized when passing correct id and user does not have permissions
Expand Down

0 comments on commit 69de6dd

Please sign in to comment.