[python] Migrate tests to JUnit5

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

View File

@ -74,8 +74,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,13 +6,13 @@ 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 PythonTokenizerTest extends CpdTextComparisonTest {
class PythonTokenizerTest extends CpdTextComparisonTest {
public PythonTokenizerTest() {
PythonTokenizerTest() {
super(".py");
}
@ -28,32 +28,32 @@ public class PythonTokenizerTest extends CpdTextComparisonTest {
@Test
public void sampleTest() {
void sampleTest() {
doTest("sample_python");
}
@Test
public void specialComments() {
void specialComments() {
doTest("special_comments");
}
@Test
public void testBackticks() {
void testBackticks() {
doTest("backticks");
}
@Test
public void testUnicode() {
void testUnicode() {
doTest("sample_unicode");
}
@Test
public void testTabWidth() {
void testTabWidth() {
doTest("tabWidth");
}
@Test
public void testVarWithDollar() {
void testVarWithDollar() {
doTest("var_with_dollar");
}