This is an automated email from the ASF dual-hosted git repository.
sparsick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 73c5247 chore: remove junit3 reference (#762)
73c5247 is described below
commit 73c52477a0e1b67eee420ec207a8f50c1d3e99f0
Author: Sandra Parsick <[email protected]>
AuthorDate: Sat Dec 20 07:44:06 2025 +0000
chore: remove junit3 reference (#762)
* chore: remove junit3 reference
- in three cases, there are still junit3 reference because they are part of
a test.
Signed-off-by: Sandra Parsick <[email protected]>
---
.../project-with-reactors-included/one/pom.xml | 4 +--
.../maven/plugins/shade/its/one/AppTest.java | 32 ++++----------------
.../project-with-reactors-included/pom.xml | 12 ++++----
.../project-with-reactors-included/two/pom.xml | 10 +++----
.../maven/plugins/shade/its/two/AppTest.java | 34 ++++------------------
src/it/projects/users-shader-impl/pom.xml | 12 ++++----
.../apache/maven/plugins/shade/its/AppTest.java | 29 +++++-------------
src/test/projects/test-project/pom.xml | 12 ++++----
.../org/apache/maven/plugins/shade/AppTest.java | 29 +++++-------------
9 files changed, 51 insertions(+), 123 deletions(-)
diff --git a/src/it/projects/project-with-reactors-included/one/pom.xml
b/src/it/projects/project-with-reactors-included/one/pom.xml
index 82c74c0..c74244f 100644
--- a/src/it/projects/project-with-reactors-included/one/pom.xml
+++ b/src/it/projects/project-with-reactors-included/one/pom.xml
@@ -31,8 +31,8 @@ under the License.
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
diff --git
a/src/it/projects/project-with-reactors-included/one/src/test/java/org/apache/maven/plugins/shade/its/one/AppTest.java
b/src/it/projects/project-with-reactors-included/one/src/test/java/org/apache/maven/plugins/shade/its/one/AppTest.java
index 5462054..b229e4b 100644
---
a/src/it/projects/project-with-reactors-included/one/src/test/java/org/apache/maven/plugins/shade/its/one/AppTest.java
+++
b/src/it/projects/project-with-reactors-included/one/src/test/java/org/apache/maven/plugins/shade/its/one/AppTest.java
@@ -20,39 +20,19 @@ package org.apache.maven.plugins.shade.its.one;
*/
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* 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 );
- }
+public class AppTest {
- /**
- * @return the suite of tests being tested
- */
- public static Test suite()
- {
- return new TestSuite( AppTest.class );
- }
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/projects/project-with-reactors-included/pom.xml
b/src/it/projects/project-with-reactors-included/pom.xml
index 59abccc..29f00fb 100644
--- a/src/it/projects/project-with-reactors-included/pom.xml
+++ b/src/it/projects/project-with-reactors-included/pom.xml
@@ -43,12 +43,12 @@ under the License.
<dependencyManagement>
<dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13.2</version>
- <scope>test</scope>
- </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.maven.its.shade.pp</groupId>
<artifactId>one</artifactId>
diff --git a/src/it/projects/project-with-reactors-included/two/pom.xml
b/src/it/projects/project-with-reactors-included/two/pom.xml
index 8106e0d..1080b34 100644
--- a/src/it/projects/project-with-reactors-included/two/pom.xml
+++ b/src/it/projects/project-with-reactors-included/two/pom.xml
@@ -34,11 +34,11 @@ under the License.
<groupId>org.apache.maven.its.shade.pp</groupId>
<artifactId>one</artifactId>
</dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
diff --git
a/src/it/projects/project-with-reactors-included/two/src/test/java/org/apache/maven/plugins/shade/its/two/AppTest.java
b/src/it/projects/project-with-reactors-included/two/src/test/java/org/apache/maven/plugins/shade/its/two/AppTest.java
index 0bd15b2..ee9f540 100644
---
a/src/it/projects/project-with-reactors-included/two/src/test/java/org/apache/maven/plugins/shade/its/two/AppTest.java
+++
b/src/it/projects/project-with-reactors-included/two/src/test/java/org/apache/maven/plugins/shade/its/two/AppTest.java
@@ -20,39 +20,17 @@ package org.apache.maven.plugins.shade.its.two;
*/
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* 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 :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ public void testApp() {
+ assertTrue(true);
}
}
diff --git a/src/it/projects/users-shader-impl/pom.xml
b/src/it/projects/users-shader-impl/pom.xml
index b954591..8fdfadd 100644
--- a/src/it/projects/users-shader-impl/pom.xml
+++ b/src/it/projects/users-shader-impl/pom.xml
@@ -42,12 +42,12 @@ under the License.
</properties>
<dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.13.2</version>
- <scope>test</scope>
- </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
diff --git
a/src/it/projects/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/AppTest.java
b/src/it/projects/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/AppTest.java
index 64397f7..1892133 100644
---
a/src/it/projects/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/AppTest.java
+++
b/src/it/projects/users-shader-impl/src/test/java/org/apache/maven/plugins/shade/its/AppTest.java
@@ -20,39 +20,24 @@ package org.apache.maven.plugins.shade.its;
*/
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest {
/**
* 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 );
- }
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ public void testApp() {
+ assertTrue(true);
}
}
+
diff --git a/src/test/projects/test-project/pom.xml
b/src/test/projects/test-project/pom.xml
index 7f1cecf..f47d676 100644
--- a/src/test/projects/test-project/pom.xml
+++ b/src/test/projects/test-project/pom.xml
@@ -37,12 +37,12 @@
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.3.0</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
diff --git
a/src/test/projects/test-project/src/test/java/org/apache/maven/plugins/shade/AppTest.java
b/src/test/projects/test-project/src/test/java/org/apache/maven/plugins/shade/AppTest.java
index 9dc26f3..7f07aac 100644
---
a/src/test/projects/test-project/src/test/java/org/apache/maven/plugins/shade/AppTest.java
+++
b/src/test/projects/test-project/src/test/java/org/apache/maven/plugins/shade/AppTest.java
@@ -18,39 +18,24 @@
*/
package org.apache.maven.plugins.shade;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertTrue;
/**
* Unit test for simple App.
*/
-public class AppTest
- extends TestCase
-{
+public class AppTest {
/**
* 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 );
- }
/**
* Rigourous Test :-)
*/
- public void testApp()
- {
- assertTrue( true );
+ @Test
+ public void testApp() {
+ assertTrue(true);
}
}
+