From bf8c41b06b560e1dc38833b43f6e9f91156c1dd3 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 3 Oct 2022 09:27:08 +0200 Subject: [PATCH] [ruby] Migrate tests to JUnit5 --- pmd-ruby/pom.xml | 4 ++-- .../net/sourceforge/pmd/cpd/RubyTokenizerTest.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) 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"); } }