Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgonzal committed Jul 28, 2023
1 parent 6a0977a commit b15d9a3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,8 @@ public void testVerifyDCVVImplException2() throws Throwable {
jcesecmod.verifydCVV(accountNo, imkac, dcvv, expDate
,serviceCode, atc, MKDMethod.OPTION_A);
fail("Expected SMException to be thrown");
} catch (IllegalArgumentException ex) {
assertTrue(ex.getMessage().contains("Account"));
} catch (SMException ex){
if (isJavaVersionAtMost(JAVA_14)) {
assertNull(ex.getNested().getMessage(), "ex.getNested().getMessage()");
Expand Down

0 comments on commit b15d9a3

Please sign in to comment.