diff --git a/pmd-ruby/pom.xml b/pmd-ruby/pom.xml
index 642b1347eb..7ed8689213 100644
--- a/pmd-ruby/pom.xml
+++ b/pmd-ruby/pom.xml
@@ -18,8 +18,8 @@
- junit
- junit
+ org.junit.jupiter
+ junit-jupiter
test
diff --git a/pmd-ruby/src/test/java/net/sourceforge/pmd/cpd/RubyTokenizerTest.java b/pmd-ruby/src/test/java/net/sourceforge/pmd/cpd/RubyTokenizerTest.java
index b8722f8d33..48704a2527 100644
--- a/pmd-ruby/src/test/java/net/sourceforge/pmd/cpd/RubyTokenizerTest.java
+++ b/pmd-ruby/src/test/java/net/sourceforge/pmd/cpd/RubyTokenizerTest.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 RubyTokenizerTest extends CpdTextComparisonTest {
+class RubyTokenizerTest extends CpdTextComparisonTest {
- public RubyTokenizerTest() {
+ RubyTokenizerTest() {
super(".rb");
}
@@ -28,12 +28,12 @@ public class RubyTokenizerTest extends CpdTextComparisonTest {
@Test
- public void testSimple() {
+ void testSimple() {
doTest("server");
}
@Test
- public void testTabWidth() {
+ void testTabWidth() {
doTest("tabWidth");
}
}