Skip to content

Commit

Permalink
Revise 'storeObject_objectLockedIds()' junit test to assert 'PidObjec…
Browse files Browse the repository at this point in the history
…tExistsException' over 'FileAlreadyExistsException'
  • Loading branch information
doulikecookiedough committed Jun 27, 2023
1 parent 28cd9a3 commit 9112cbd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(() -> {
Expand All @@ -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(() -> {
Expand All @@ -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);
}
});

Expand Down

0 comments on commit 9112cbd

Please sign in to comment.