[objectivec] Migrate tests to Junit5

This commit is contained in:
Andreas Dangel
2022-07-29 17:31:33 +02:00
parent 5f994dfda9
commit f667e3990d
2 changed files with 9 additions and 9 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,14 +6,14 @@ 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 ObjectiveCTokenizerTest extends CpdTextComparisonTest { class ObjectiveCTokenizerTest extends CpdTextComparisonTest {
public ObjectiveCTokenizerTest() { ObjectiveCTokenizerTest() {
super(".m"); super(".m");
} }
@ -28,22 +28,22 @@ public class ObjectiveCTokenizerTest extends CpdTextComparisonTest {
} }
@Test @Test
public void testLongSample() { void testLongSample() {
doTest("big_sample"); doTest("big_sample");
} }
@Test @Test
public void testUnicodeEscape() { void testUnicodeEscape() {
doTest("unicodeEscapeInString"); doTest("unicodeEscapeInString");
} }
@Test @Test
public void testUnicodeCharInIdent() { void testUnicodeCharInIdent() {
doTest("unicodeCharInIdent"); doTest("unicodeCharInIdent");
} }
@Test @Test
public void testTabWidth() { void testTabWidth() {
doTest("tabWidth"); doTest("tabWidth");
} }
} }