Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade junit4 #251

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.jmock.test.acceptance.junit4;

import junit.framework.TestCase;
import org.junit.runners.model.InvalidTestClassError;
import testdata.jmock.acceptance.junit4.*;

public class JUnit4TestRunnerTests extends TestCase {
Expand Down Expand Up @@ -46,9 +47,10 @@ public void testTheJUnit4TestRunnerReportsIfMoreThanOneMockeryIsFound() {

public void testDetectsNonPublicBeforeMethodsCorrectly() {
listener.runTestIn(JUnit4TestWithNonPublicBeforeMethod.class);
listener.assertTestFailedWith(Throwable.class);
listener.assertTestFailedWith(InvalidTestClassError.class);
assertEquals("should have detected non-public before method",
"Method before() should be public",
"Invalid test class 'testdata.jmock.acceptance.junit4.JUnit4TestWithNonPublicBeforeMethod':\n" +
" 1. Method before() should be public",
listener.failure.getMessage());
}

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<downloadSources>true</downloadSources>
<hamcrest.version>2.2</hamcrest.version>
<junit.version>4.12</junit.version>
<junit.version>4.13.2</junit.version>
<asm.version>8.0.1</asm.version>
<objenesis.version>3.1</objenesis.version>
<bsh.version>2.0b6</bsh.version>
Expand Down
Loading