diff --git a/src/test/java/org/folio/client/DcbClientTest.java b/src/test/java/org/folio/client/DcbClientTest.java index f76db024..3a148d15 100644 --- a/src/test/java/org/folio/client/DcbClientTest.java +++ b/src/test/java/org/folio/client/DcbClientTest.java @@ -50,7 +50,7 @@ void canGetDcbTransactionStatus() { when(dcbClient.getDcbTransactionStatus(transactionId)).thenReturn(transactionStatusResponse); var response = dcbClient.getDcbTransactionStatus(transactionId); assertNotNull(response); - assertEquals(response.getStatus(), TransactionStatusResponse.StatusEnum.CANCELLED); + assertEquals(TransactionStatusResponse.StatusEnum.CANCELLED, response.getStatus()); } @Test @@ -74,6 +74,6 @@ void canChangeDcbTransactionStatus() { .thenReturn(transactionStatusResponse); var response = dcbClient.changeDcbTransactionStatus(transactionId, targetStatus); assertNotNull(response); - assertEquals(response.getStatus(), TransactionStatusResponse.StatusEnum.CANCELLED); + assertEquals(TransactionStatusResponse.StatusEnum.CANCELLED, response.getStatus()); } }