diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml
index 88f018b21a..9d8068a8fe 100644
--- a/pmd-python/pom.xml
+++ b/pmd-python/pom.xml
@@ -74,8 +74,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java b/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java
index e72eb3e489..5b22f66402 100644
--- a/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java
+++ b/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.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 PythonTokenizerTest extends CpdTextComparisonTest {
+class PythonTokenizerTest extends CpdTextComparisonTest {
- public PythonTokenizerTest() {
+ PythonTokenizerTest() {
super(".py");
}
@@ -28,32 +28,32 @@ public class PythonTokenizerTest extends CpdTextComparisonTest {
@Test
- public void sampleTest() {
+ void sampleTest() {
doTest("sample_python");
}
@Test
- public void specialComments() {
+ void specialComments() {
doTest("special_comments");
}
@Test
- public void testBackticks() {
+ void testBackticks() {
doTest("backticks");
}
@Test
- public void testUnicode() {
+ void testUnicode() {
doTest("sample_unicode");
}
@Test
- public void testTabWidth() {
+ void testTabWidth() {
doTest("tabWidth");
}
@Test
- public void testVarWithDollar() {
+ void testVarWithDollar() {
doTest("var_with_dollar");
}