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

View File

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