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 5462054c..b229e4b5 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 @@ */ -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 59abccc8..29f00fb5 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. - - junit - junit - 4.13.2 - test - + + org.junit.jupiter + junit-jupiter-api + 5.14.0 + test + org.apache.maven.its.shade.pp one 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 8106e0d5..1080b34c 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. org.apache.maven.its.shade.pp one - - junit - junit - test - + + org.junit.jupiter + junit-jupiter-api + test + 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 0bd15b22..ee9f5400 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 @@ */ -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 b954591d..8fdfadd8 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. - - junit - junit - 4.13.2 - test - + + org.junit.jupiter + junit-jupiter-api + 5.14.0 + test + 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 64397f75..18921339 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 @@ */ -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 7f1cecfa..f47d6765 100644 --- a/src/test/projects/test-project/pom.xml +++ b/src/test/projects/test-project/pom.xml @@ -37,12 +37,12 @@ org.codehaus.plexus plexus-utils 3.3.0 - - - junit - junit - 3.8.1 - test + + org.junit.jupiter + junit-jupiter-api + 5.14.0 + test + 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 9dc26f3d..7f07aaca 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); } } +