diff --git a/pmd-go/pom.xml b/pmd-go/pom.xml
index f4faa32bd4..060920664c 100644
--- a/pmd-go/pom.xml
+++ b/pmd-go/pom.xml
@@ -60,8 +60,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java b/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java
index 0a21eb2e1b..eada52e8f1 100644
--- a/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java
+++ b/pmd-go/src/test/java/net/sourceforge/pmd/cpd/GoTokenizerTest.java
@@ -6,13 +6,13 @@ package net.sourceforge.pmd.cpd;
import java.util.Properties;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
-public class GoTokenizerTest extends CpdTextComparisonTest {
+class GoTokenizerTest extends CpdTextComparisonTest {
- public GoTokenizerTest() {
+ GoTokenizerTest() {
super(".go");
}
@@ -27,22 +27,22 @@ public class GoTokenizerTest extends CpdTextComparisonTest {
}
@Test
- public void simpleTest() {
+ void simpleTest() {
doTest("hello");
}
@Test
- public void bigFileTest() {
+ void bigFileTest() {
doTest("btrfs");
}
@Test
- public void testIssue1751() {
+ void testIssue1751() {
doTest("issue-1751");
}
@Test
- public void testUnicode() {
+ void testUnicode() {
// https://github.com/pmd/pmd/issues/2752
doTest("sample_unicode");
}