[lua] Migrate tests to Junit5

This commit is contained in:
Andreas Dangel
2022-07-29 17:23:17 +02:00
parent 64c8ac9d23
commit 394c0cbf3b
2 changed files with 8 additions and 8 deletions

View File

@ -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>

View File

@ -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");
}
}