Skip to content

Commit

Permalink
Merge pull request #200 from jamesjer/master
Browse files Browse the repository at this point in the history
Adapt to changed output in junit 4.13
  • Loading branch information
olibye authored Aug 17, 2020
2 parents 2416075 + 1c454c0 commit 7985330
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 7985330

Please sign in to comment.