Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaifk468 committed Aug 31, 2023
1 parent 5af9379 commit 7bd8145
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void test_getCertificateThumbprint() throws Exception {
IdentityProviderUtil.getCertificateThumbprint("test", getCertificate());
Assert.fail();
} catch (EsignetException e) {
throw new EsignetException(ErrorConstants.INVALID_ALGORITHM);
Assert.assertEquals(e.getMessage(),ErrorConstants.INVALID_ALGORITHM);
}
}

Expand All @@ -172,7 +172,7 @@ public void test_generateThumbprintByCertificate()throws Exception{
IdentityProviderUtil.generateThumbprintByCertificate("test");
Assert.fail();
} catch (EsignetException e) {
throw new EsignetException(ErrorConstants.INVALID_ALGORITHM);
Assert.assertEquals(e.getMessage(),ErrorConstants.INVALID_CERTIFICATE);
}
}

Expand Down

0 comments on commit 7bd8145

Please sign in to comment.