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