Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoet-jh committed Feb 15, 2024
1 parent f9a160d commit a0df288
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void testUpdateObject_OptimisticLock_Submission() throws IOException {
assertTrue(ioException.getMessage().contains("Update failed: http://localhost:8080/data/submission/"));
assertTrue(ioException.getMessage().contains(
"returned 409 {\"errors\":[{\"detail\":\"Optimistic lock check failed for Submission [ID="));
assertTrue(ioException.getMessage().contains("Request version: 0, Stored version: 1\"}]}"));
assertTrue(ioException.getMessage().contains("Request version: 1, Stored version: 2\"}]}"));

Submission updateSubmission3 = client.getObject(Submission.class, sub.getId());
assertEquals("Name", updateSubmission3.getSubmitterName());
Expand Down Expand Up @@ -208,7 +208,7 @@ public void testUpdateObject_OptimisticLock_Deposit() throws IOException {
assertTrue(ioException.getMessage().contains("Update failed: http://localhost:8080/data/deposit/"));
assertTrue(ioException.getMessage().contains(
"returned 409 {\"errors\":[{\"detail\":\"Optimistic lock check failed for Deposit [ID="));
assertTrue(ioException.getMessage().contains("Request version: 0, Stored version: 1\"}]}"));
assertTrue(ioException.getMessage().contains("Request version: 1, Stored version: 2\"}]}"));

Deposit updateDeposit3 = client.getObject(Deposit.class, deposit.getId());
assertEquals(DepositStatus.FAILED, updateDeposit3.getDepositStatus());
Expand Down

0 comments on commit a0df288

Please sign in to comment.