This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 1bac6a9 chore: drop junit3 references (#985)
1bac6a9 is described below
commit 1bac6a97e9d6008eccf5e6391ddc9ae1c0a5ecc8
Author: Sandra Parsick <[email protected]>
AuthorDate: Mon Oct 27 10:37:28 2025 +0000
chore: drop junit3 references (#985)
Signed-off-by: Sandra Parsick <[email protected]>
---
src/it/MCOMPILER-170/mcompiler-170-1/pom.xml | 9 +---
.../apache/maven/plugins/compiler/it/AppTest.java | 34 ---------------
src/it/MCOMPILER-170/mcompiler-170-2/pom.xml | 8 ----
.../apache/maven/plugins/compiler/it/AppTest.java | 51 ----------------------
src/it/MCOMPILER-170/mcompiler-170-3/pom.xml | 8 ----
.../apache/maven/plugins/compiler/it/AppTest.java | 51 ----------------------
src/it/MCOMPILER-170/mcompiler-170-4/pom.xml | 8 ----
.../apache/maven/plugins/compiler/it/AppTest.java | 51 ----------------------
src/it/MCOMPILER-268_modulepath/pom.xml | 6 ---
.../src/test/java/com/foo/MyTest.java | 25 -----------
src/it/MCOMPILER-270_release/pom.xml | 8 ----
.../src/test/java/MyTest.java | 23 ----------
src/it/MCOMPILER-275_separate-moduleinfo/pom.xml | 7 ++-
.../src/test/java/com/foo/MyTest.java | 11 ++++-
src/it/MCOMPILER-284/pom.xml | 7 ++-
.../src/test/java/com/foo/MyTest.java | 11 ++++-
src/it/default-fork-windows/pom.xml | 9 ++--
.../default-fork-windows/src/test/java/MyTest.java | 10 ++++-
src/it/default-fork/pom.xml | 7 +--
src/it/default-fork/src/test/java/MyTest.java | 10 ++++-
src/it/default-incremental-disable/pom.xml | 9 ++--
.../src/test/java/foo/MyTest.java | 10 ++++-
src/it/default/pom.xml | 8 ----
src/it/default/src/test/java/MyTest.java | 4 +-
src/it/includes-excludes/pom.xml | 8 ++--
.../java/org/apache/maven/it0055/PersonTest.java | 8 +++-
.../org/apache/maven/it0055/PersonTwoTest.java | 8 +++-
src/it/jdk16-annotation/pom.xml | 7 ++-
.../com/mycompany/jdk16annotation/AppTest.java | 24 +++-------
29 files changed, 85 insertions(+), 355 deletions(-)
diff --git a/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml
b/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml
index 2f77c98..230d9d7 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml
+++ b/src/it/MCOMPILER-170/mcompiler-170-1/pom.xml
@@ -31,12 +31,5 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
+
</project>
diff --git
a/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
b/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
deleted file mode 100644
index 0954cf2..0000000
---
a/src/it/MCOMPILER-170/mcompiler-170-1/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.maven.plugins.compiler.it;
-
-import org.junit.jupiter.api.Test;
-
-/**
- * Unit test for simple App.
- */
-public class AppTest {
- /**
- * Rigourous Test :-)
- */
- @Test
- public void testApp() {
- assertTrue(true);
- }
-}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml
b/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml
index cbd90e4..0228d41 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml
+++ b/src/it/MCOMPILER-170/mcompiler-170-2/pom.xml
@@ -31,12 +31,4 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
</project>
diff --git
a/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
b/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
deleted file mode 100644
index af3a454..0000000
---
a/src/it/MCOMPILER-170/mcompiler-170-2/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.maven.plugins.compiler.it;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * 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);
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp() {
- assertTrue(true);
- }
-}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml
b/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml
index a1b1dcf..dd4d25d 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml
+++ b/src/it/MCOMPILER-170/mcompiler-170-3/pom.xml
@@ -31,12 +31,4 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
</project>
diff --git
a/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
b/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
deleted file mode 100644
index af3a454..0000000
---
a/src/it/MCOMPILER-170/mcompiler-170-3/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.maven.plugins.compiler.it;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * 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);
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp() {
- assertTrue(true);
- }
-}
diff --git a/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml
b/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml
index 77636ab..7fec7df 100644
--- a/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml
+++ b/src/it/MCOMPILER-170/mcompiler-170-4/pom.xml
@@ -31,12 +31,4 @@ under the License.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
</project>
diff --git
a/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
b/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
deleted file mode 100644
index af3a454..0000000
---
a/src/it/MCOMPILER-170/mcompiler-170-4/src/test/java/org/apache/maven/plugins/compiler/it/AppTest.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.maven.plugins.compiler.it;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * 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);
- }
-
- /**
- * Rigourous Test :-)
- */
- public void testApp() {
- assertTrue(true);
- }
-}
diff --git a/src/it/MCOMPILER-268_modulepath/pom.xml
b/src/it/MCOMPILER-268_modulepath/pom.xml
index 9a4dbcb..9eb49cf 100644
--- a/src/it/MCOMPILER-268_modulepath/pom.xml
+++ b/src/it/MCOMPILER-268_modulepath/pom.xml
@@ -34,12 +34,6 @@
<artifactId>commons-lang3</artifactId>
<version>3.18.0</version>
</dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
diff --git a/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
b/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
deleted file mode 100644
index 072b808..0000000
--- a/src/it/MCOMPILER-268_modulepath/src/test/java/com/foo/MyTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package com.foo;
-
-import junit.framework.TestCase;
-
-public class MyTest extends TestCase {
- private MyClass myClass = new MyClass();
-}
diff --git a/src/it/MCOMPILER-270_release/pom.xml
b/src/it/MCOMPILER-270_release/pom.xml
index 552b3c1..c308a16 100644
--- a/src/it/MCOMPILER-270_release/pom.xml
+++ b/src/it/MCOMPILER-270_release/pom.xml
@@ -30,14 +30,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
- </dependency>
- </dependencies>
-
<build>
<plugins>
<plugin>
diff --git a/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
b/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
deleted file mode 100644
index 77db4f1..0000000
--- a/src/it/MCOMPILER-270_release/src/test/java/MyTest.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package foo;
-
-import junit.framework.TestCase;
-
-public class MyTest extends TestCase {}
diff --git a/src/it/MCOMPILER-275_separate-moduleinfo/pom.xml
b/src/it/MCOMPILER-275_separate-moduleinfo/pom.xml
index 94e1441..27e28c6 100644
--- a/src/it/MCOMPILER-275_separate-moduleinfo/pom.xml
+++ b/src/it/MCOMPILER-275_separate-moduleinfo/pom.xml
@@ -32,13 +32,12 @@
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
<scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git
a/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
b/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
index 072b808..5cdd641 100644
--- a/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
+++ b/src/it/MCOMPILER-275_separate-moduleinfo/src/test/java/com/foo/MyTest.java
@@ -18,8 +18,15 @@
*/
package com.foo;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class MyTest extends TestCase {
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+public class MyTest {
private MyClass myClass = new MyClass();
+
+ @Test
+ public void testApp() {
+ assertTrue(true);
+ }
}
diff --git a/src/it/MCOMPILER-284/pom.xml b/src/it/MCOMPILER-284/pom.xml
index 0c35ed0..962348d 100644
--- a/src/it/MCOMPILER-284/pom.xml
+++ b/src/it/MCOMPILER-284/pom.xml
@@ -32,13 +32,12 @@
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
<scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git a/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
b/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
index 072b808..5cdd641 100644
--- a/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
+++ b/src/it/MCOMPILER-284/src/test/java/com/foo/MyTest.java
@@ -18,8 +18,15 @@
*/
package com.foo;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class MyTest extends TestCase {
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+public class MyTest {
private MyClass myClass = new MyClass();
+
+ @Test
+ public void testApp() {
+ assertTrue(true);
+ }
}
diff --git a/src/it/default-fork-windows/pom.xml
b/src/it/default-fork-windows/pom.xml
index 9926604..41dbf51 100644
--- a/src/it/default-fork-windows/pom.xml
+++ b/src/it/default-fork-windows/pom.xml
@@ -29,15 +29,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
-
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git a/src/it/default-fork-windows/src/test/java/MyTest.java
b/src/it/default-fork-windows/src/test/java/MyTest.java
index 77db4f1..8bbd425 100644
--- a/src/it/default-fork-windows/src/test/java/MyTest.java
+++ b/src/it/default-fork-windows/src/test/java/MyTest.java
@@ -18,6 +18,12 @@
*/
package foo;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class MyTest extends TestCase {}
+public class MyTest {
+
+ @Test
+ public void test() {
+ System.out.println("test");
+ }
+}
diff --git a/src/it/default-fork/pom.xml b/src/it/default-fork/pom.xml
index 9926604..a2e2da9 100644
--- a/src/it/default-fork/pom.xml
+++ b/src/it/default-fork/pom.xml
@@ -32,9 +32,10 @@
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
</dependency>
</dependencies>
diff --git a/src/it/default-fork/src/test/java/MyTest.java
b/src/it/default-fork/src/test/java/MyTest.java
index 77db4f1..8bbd425 100644
--- a/src/it/default-fork/src/test/java/MyTest.java
+++ b/src/it/default-fork/src/test/java/MyTest.java
@@ -18,6 +18,12 @@
*/
package foo;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class MyTest extends TestCase {}
+public class MyTest {
+
+ @Test
+ public void test() {
+ System.out.println("test");
+ }
+}
diff --git a/src/it/default-incremental-disable/pom.xml
b/src/it/default-incremental-disable/pom.xml
index 1db8db5..3c8065c 100644
--- a/src/it/default-incremental-disable/pom.xml
+++ b/src/it/default-incremental-disable/pom.xml
@@ -29,15 +29,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
-
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
+ <scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git a/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
b/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
index 77db4f1..8bbd425 100644
--- a/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
+++ b/src/it/default-incremental-disable/src/test/java/foo/MyTest.java
@@ -18,6 +18,12 @@
*/
package foo;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class MyTest extends TestCase {}
+public class MyTest {
+
+ @Test
+ public void test() {
+ System.out.println("test");
+ }
+}
diff --git a/src/it/default/pom.xml b/src/it/default/pom.xml
index 01ee3ad..b9d081c 100644
--- a/src/it/default/pom.xml
+++ b/src/it/default/pom.xml
@@ -30,14 +30,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
- </dependency>
- </dependencies>
-
<build>
<plugins>
<plugin>
diff --git a/src/it/default/src/test/java/MyTest.java
b/src/it/default/src/test/java/MyTest.java
index 77db4f1..08064cd 100644
--- a/src/it/default/src/test/java/MyTest.java
+++ b/src/it/default/src/test/java/MyTest.java
@@ -18,6 +18,4 @@
*/
package foo;
-import junit.framework.TestCase;
-
-public class MyTest extends TestCase {}
+public class MyTest {}
diff --git a/src/it/includes-excludes/pom.xml b/src/it/includes-excludes/pom.xml
index 3f28af7..3fe396c 100644
--- a/src/it/includes-excludes/pom.xml
+++ b/src/it/includes-excludes/pom.xml
@@ -29,14 +29,12 @@ under the License.
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.2</version>
- <type>jar</type>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
<scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git
a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
index f360165..848ab31 100644
---
a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
+++
b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTest.java
@@ -18,9 +18,13 @@
*/
package org.apache.maven.it0055;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class PersonTest extends TestCase {
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class PersonTest {
+
+ @Test
public void testPerson() {
Person person = new Person();
diff --git
a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
index a9096ee..96a6c29 100644
---
a/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
+++
b/src/it/includes-excludes/src/test/java/org/apache/maven/it0055/PersonTwoTest.java
@@ -18,9 +18,13 @@
*/
package org.apache.maven.it0055;
-import junit.framework.TestCase;
+import org.junit.jupiter.api.Test;
-public class PersonTwoTest extends TestCase {
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+public class PersonTwoTest {
+
+ @Test
public void testPerson() {
Person person = new Person();
diff --git a/src/it/jdk16-annotation/pom.xml b/src/it/jdk16-annotation/pom.xml
index fff3e23..119bece 100644
--- a/src/it/jdk16-annotation/pom.xml
+++ b/src/it/jdk16-annotation/pom.xml
@@ -25,13 +25,12 @@ under the License.
<dependencies>
<dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <version>5.14.0</version>
<scope>test</scope>
</dependency>
</dependencies>
-
<build>
<plugins>
<plugin>
diff --git
a/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
b/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
index 63bde8e..6ec9458 100644
---
a/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
+++
b/src/it/jdk16-annotation/src/test/java/com/mycompany/jdk16annotation/AppTest.java
@@ -18,34 +18,20 @@
*/
package com.mycompany.jdk16annotation;
-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.
*/
@ServiceProvider(service = App.class, path = "xxx", position = 1)
-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);
}