forked from phoedos/pmd
[lua] Migrate tests to Junit5
This commit is contained in:
@@ -62,8 +62,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,12 +6,12 @@ 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 LuaTokenizerTest extends CpdTextComparisonTest {
|
class LuaTokenizerTest extends CpdTextComparisonTest {
|
||||||
public LuaTokenizerTest() {
|
LuaTokenizerTest() {
|
||||||
super(".lua");
|
super(".lua");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,17 +26,17 @@ public class LuaTokenizerTest extends CpdTextComparisonTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSimple() {
|
void testSimple() {
|
||||||
doTest("helloworld");
|
doTest("helloworld");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testFactorial() {
|
void testFactorial() {
|
||||||
doTest("factorial");
|
doTest("factorial");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTabWidth() {
|
void testTabWidth() {
|
||||||
doTest("tabWidth");
|
doTest("tabWidth");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user