mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 14:03:17 +00:00
91356: Fix tests
This commit is contained in:
@@ -158,6 +158,9 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
|
||||
}
|
||||
|
||||
bundle.addBitstream(bitstream);
|
||||
if (bitstream.isDeleted()) {
|
||||
bitstream.setDeleted(false);
|
||||
}
|
||||
bitstream.getBundles().add(bundle);
|
||||
|
||||
|
||||
|
@@ -627,7 +627,7 @@ public class BitstreamControllerIT extends AbstractControllerIntegrationTest {
|
||||
)).andExpect(status().isOk());
|
||||
|
||||
// at this moment the bitstream should NOT be marked as deleted, because it has been attached to target bundle
|
||||
assertFalse(bitstream.isDeleted());
|
||||
assertFalse(context.reloadEntity(bitstream).isDeleted());
|
||||
|
||||
targetBundle = bundleService.find(context, targetBundle.getID());
|
||||
String name = targetBundle.getName();
|
||||
|
Reference in New Issue
Block a user