mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Minor fixes to ItemImport/Export ITs. Delete temp files on exit instead of immediately (as immediately sometimes fails)
This commit is contained in:
@@ -83,9 +83,9 @@ public class ItemExportCLIIT extends AbstractIntegrationTestWithDatabase {
|
|||||||
@After
|
@After
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws Exception {
|
public void destroy() throws Exception {
|
||||||
PathUtils.deleteDirectory(tempDir);
|
PathUtils.deleteOnExit(tempDir);
|
||||||
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
||||||
PathUtils.delete(path);
|
PathUtils.deleteOnExit(path);
|
||||||
}
|
}
|
||||||
super.destroy();
|
super.destroy();
|
||||||
}
|
}
|
||||||
|
@@ -92,9 +92,9 @@ public class ItemImportCLIIT extends AbstractIntegrationTestWithDatabase {
|
|||||||
@After
|
@After
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws Exception {
|
public void destroy() throws Exception {
|
||||||
PathUtils.deleteDirectory(tempDir);
|
PathUtils.deleteOnExit(tempDir);
|
||||||
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
for (Path path : Files.list(workDir).collect(Collectors.toList())) {
|
||||||
PathUtils.delete(path);
|
PathUtils.deleteOnExit(path);
|
||||||
}
|
}
|
||||||
super.destroy();
|
super.destroy();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user