forked from phoedos/pmd
[ruby] Migrate tests to JUnit5
This commit is contained in:
@ -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>
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user