diff --git a/deposit-app/src/test/java/edu/unc/lib/boxc/deposit/fcrepo4/IngestContentObjectsJobIT.java b/deposit-app/src/test/java/edu/unc/lib/boxc/deposit/fcrepo4/IngestContentObjectsJobIT.java index 57f258abc6..3a1fc465fe 100644 --- a/deposit-app/src/test/java/edu/unc/lib/boxc/deposit/fcrepo4/IngestContentObjectsJobIT.java +++ b/deposit-app/src/test/java/edu/unc/lib/boxc/deposit/fcrepo4/IngestContentObjectsJobIT.java @@ -459,6 +459,7 @@ public void ingestWorkObjectWithModsHistoryTest() throws Exception { Resource historyResc = DepositModelHelpers.addDatastream(workBag, DatastreamType.MD_DESCRIPTIVE_HISTORY); Path modsPath = job.getModsPath(workPid, true); var originalModsPath = Path.of("src/test/resources/simpleMods.xml"); + Files.copy(originalModsPath, modsPath); Path modsHistoryPath = depositDirManager.getHistoryFile(workPid, DatastreamType.MD_DESCRIPTIVE_HISTORY); FileUtils.writeStringToFile(modsHistoryPath.toFile(), "History content", UTF_8); String modsHistorySha1 = getSha1(modsHistoryPath);