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