Skip to content

Commit

Permalink
MODTLR-19 Fix code smells in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkurash committed Feb 19, 2024
1 parent 7528db3 commit eec1348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/org/folio/client/DcbClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
}

0 comments on commit eec1348

Please sign in to comment.