Skip to content

Commit

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

public void testAutoInstantiatesMocks() {
Expand Down

0 comments on commit 6eab2dd

Please sign in to comment.