Skip to content

Commit

Permalink
5271: Fixed failed test for auditdb logging inbound count.
Browse files Browse the repository at this point in the history
Updated unit test
  • Loading branch information
AnumehaSrivastava05 committed Nov 16, 2022
1 parent d543fd1 commit d6ee4f1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public void testExtendCancelDate_success() throws Exception {
assertEquals(MediaType.TEXT_PLAIN.toString(), recordedRequest.getHeader(CONTENT_TYPE));

assertTransactionCreated(TransactionType.EXTEND_CANCEL_DATE);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 1);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 2);
assertAffectedPartyCount(AffectedPartyDirection.OUTBOUND, 1);
}

Expand All @@ -638,7 +638,7 @@ public void testExtendCancelDate_error_invalidImmigrationCode() throws Exception
assertEquals(MediaType.TEXT_PLAIN.toString(), recordedRequest.getHeader(CONTENT_TYPE));

assertTransactionCreated(TransactionType.EXTEND_CANCEL_DATE);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 1);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 2);
assertAffectedPartyCount(AffectedPartyDirection.OUTBOUND, 1);
}

Expand All @@ -665,7 +665,7 @@ public void testExtendCancelDate_error_expiryDateMustBeAfterIssueDate() throws E
assertEquals(MediaType.TEXT_PLAIN.toString(), recordedRequest.getHeader(CONTENT_TYPE));

assertTransactionCreated(TransactionType.EXTEND_CANCEL_DATE);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 1);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 2);
assertAffectedPartyCount(AffectedPartyDirection.OUTBOUND, 1);
}

Expand Down Expand Up @@ -693,7 +693,7 @@ public void testExtendCancelDate_error_visaDateChangeRejected() throws Exception
assertEquals(MediaType.TEXT_PLAIN.toString(), recordedRequest.getHeader(CONTENT_TYPE));

assertTransactionCreated(TransactionType.EXTEND_CANCEL_DATE);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 1);
assertAffectedPartyCount(AffectedPartyDirection.INBOUND, 2);
assertAffectedPartyCount(AffectedPartyDirection.OUTBOUND, 1);
}

Expand Down

0 comments on commit d6ee4f1

Please sign in to comment.