Skip to content

Commit

Permalink
test: fix failing
Browse files Browse the repository at this point in the history
  • Loading branch information
MMilosz committed May 29, 2024
1 parent 5464b2a commit 0aac182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import java.io.IOException;
import java.sql.SQLException;
import java.util.Set;

import org.apache.logging.log4j.Logger;
import org.dspace.authorize.AuthorizeException;
Expand Down Expand Up @@ -102,7 +103,7 @@ public void deleteVersionedItem(Context c, Version versionToDelete, VersionHisto
@Override
public Item updateItemState(Context c, Item itemNew, Item previousItem) {
try {
itemService.copy(c, itemNew, previousItem);
itemService.copy(c, itemNew, previousItem, Set.of(), true, true, true);
} catch (IOException | SQLException | AuthorizeException e) {
throw new RuntimeException(e.getMessage(), e);
}
Expand Down
2 changes: 0 additions & 2 deletions dspace-api/src/test/java/org/dspace/content/ItemTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,7 @@ public void testCopy() throws Exception {
assertThat("testCopy 1", target, notNullValue());

// Set appropriate permissions
doNothing().when(authorizeServiceSpy).authorizeAction(context, target, Constants.ADD);
doNothing().when(authorizeServiceSpy).authorizeAction(context, target, Constants.WRITE);
doNothing().when(authorizeServiceSpy).authorizeAction(context, source, Constants.WRITE);

// Add new metadata to source item
String schema = "dc";
Expand Down

0 comments on commit 0aac182

Please sign in to comment.