Skip to content

Commit

Permalink
(squash) Review Comment
Browse files Browse the repository at this point in the history
Co-authored-by: Evgeny Mandrikov <138671+Godin@users.noreply.github.com>
  • Loading branch information
marchof and Godin committed Feb 2, 2022
1 parent cdff99d commit 8f77b1a
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -214,8 +214,10 @@ public void testTransformFailure() {
protectionDomain, null);
fail("IllegalClassFormatException expected.");
} catch (IllegalClassFormatException e) {
assertTrue(e.getMessage(), e.getMessage()
.startsWith("Error while instrumenting org.jacoco.Sample"));
assertEquals(String.format(
"Error while instrumenting %s with JaCoCo %s/%s.",
"org.jacoco.Sample", JaCoCo.VERSION, JaCoCo.COMMITID_SHORT),
e.getMessage());
}
recorder.assertException(IllegalClassFormatException.class,
String.format("Error while instrumenting %s with JaCoCo %s/%s.",
Expand Down

0 comments on commit 8f77b1a

Please sign in to comment.