diff --git a/src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java b/src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java index 3c49675e..77d82a89 100644 --- a/src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java +++ b/src/test/java/org/dataone/hashstore/filehashstore/FileHashStoreInterfaceTest.java @@ -350,7 +350,7 @@ public void storeObject_objectLockedIds() throws Exception { } } catch (Exception e) { e.printStackTrace(); - assertTrue(e instanceof RuntimeException || e instanceof FileAlreadyExistsException); + assertTrue(e instanceof RuntimeException || e instanceof PidObjectExistsException); } }); Future future2 = executorService.submit(() -> { @@ -364,7 +364,7 @@ public void storeObject_objectLockedIds() throws Exception { } } catch (Exception e) { e.printStackTrace(); - assertTrue(e instanceof RuntimeException || e instanceof FileAlreadyExistsException); + assertTrue(e instanceof RuntimeException || e instanceof PidObjectExistsException); } }); Future future3 = executorService.submit(() -> { @@ -378,7 +378,7 @@ public void storeObject_objectLockedIds() throws Exception { } } catch (Exception e) { e.printStackTrace(); - assertTrue(e instanceof RuntimeException || e instanceof FileAlreadyExistsException); + assertTrue(e instanceof RuntimeException || e instanceof PidObjectExistsException); } });