[ruby] Migrate tests to JUnit5

This commit is contained in:
Andreas Dangel
2022-10-03 09:27:08 +02:00
parent f454e19ca7
commit bf8c41b06b
2 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,8 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit</artifactId> <artifactId>junit-jupiter</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -6,13 +6,13 @@ package net.sourceforge.pmd.cpd;
import java.util.Properties; import java.util.Properties;
import org.junit.Test; import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest; import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
public class RubyTokenizerTest extends CpdTextComparisonTest { class RubyTokenizerTest extends CpdTextComparisonTest {
public RubyTokenizerTest() { RubyTokenizerTest() {
super(".rb"); super(".rb");
} }
@ -28,12 +28,12 @@ public class RubyTokenizerTest extends CpdTextComparisonTest {
@Test @Test
public void testSimple() { void testSimple() {
doTest("server"); doTest("server");
} }
@Test @Test
public void testTabWidth() { void testTabWidth() {
doTest("tabWidth"); doTest("tabWidth");
} }
} }