Skip to content

Commit

Permalink
Remove old JUnit 3.x reference
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jul 2, 2024
1 parent 658625b commit a4dcc9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 31 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,6 @@ under the License.
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit4Version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,16 @@
*/
package org.apache.maven.plugins.compiler.it;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.junit.jupiter.api.Test;

/**
* Unit test for simple App.
*/
public class AppTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest(String testName) {
super(testName);
}

/**
* @return the suite of tests being tested
*/
public static Test suite() {
return new TestSuite(AppTest.class);
}

public class AppTest {
/**
* Rigourous Test :-)
*/
@Test
public void testApp() {
assertTrue(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,11 @@ private static InternalSession createSession() {
Path artifactFile;
String localRepository = System.getProperty("localRepository");
if (localRepository != null) {
artifactFile = Paths.get(localRepository, "junit/junit/3.8.1/junit-3.8.1.jar");
artifactFile = Paths.get(
localRepository, "org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar");
} else {
// for IDE
String junitURI = junit.framework.Test.class
.getResource("Test.class")
.toURI()
.toString();
String junitURI = Test.class.getResource("Test.class").toURI().toString();
junitURI = junitURI.substring("jar:".length(), junitURI.indexOf('!'));
artifactFile = new File(URI.create(junitURI)).toPath();
}
Expand Down

0 comments on commit a4dcc9e

Please sign in to comment.