From f454e19ca7826c692b30f90e2033c405646226c2 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Mon, 3 Oct 2022 09:26:08 +0200 Subject: [PATCH] [python] Migrate tests to JUnit5 --- pmd-python/pom.xml | 4 ++-- .../pmd/cpd/PythonTokenizerTest.java | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml index 88f018b21a..9d8068a8fe 100644 --- a/pmd-python/pom.xml +++ b/pmd-python/pom.xml @@ -74,8 +74,8 @@ - junit - junit + org.junit.jupiter + junit-jupiter test diff --git a/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java b/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java index e72eb3e489..5b22f66402 100644 --- a/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java +++ b/pmd-python/src/test/java/net/sourceforge/pmd/cpd/PythonTokenizerTest.java @@ -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"); }