Skip to content

Commit

Permalink
Adapt to changed output in junit 4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjer committed Aug 16, 2020
1 parent 2416075 commit 1c454c0
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ public void testTheJUnit4TestRunnerReportsIfMoreThanOneMockeryIsFound() {
public void testDetectsNonPublicBeforeMethodsCorrectly() {
listener.runTestIn(JUnit4TestWithNonPublicBeforeMethod.class);
listener.assertTestFailedWith(Throwable.class);
assertEquals("should have detected non-public before method",
"Method before() should be public",
listener.failure.getMessage());
assertTrue("should have detected non-public before method",
listener.failure.getMessage().contains("Method before() should be public"));
}

public void testAutoInstantiatesMocks() {
Expand Down

0 comments on commit 1c454c0

Please sign in to comment.