[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>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -6,14 +6,14 @@ 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 ObjectiveCTokenizerTest extends CpdTextComparisonTest {
class ObjectiveCTokenizerTest extends CpdTextComparisonTest {
public ObjectiveCTokenizerTest() {
ObjectiveCTokenizerTest() {
super(".m");
}
@ -28,22 +28,22 @@ public class ObjectiveCTokenizerTest extends CpdTextComparisonTest {
}
@Test
public void testLongSample() {
void testLongSample() {
doTest("big_sample");
}
@Test
public void testUnicodeEscape() {
void testUnicodeEscape() {
doTest("unicodeEscapeInString");
}
@Test
public void testUnicodeCharInIdent() {
void testUnicodeCharInIdent() {
doTest("unicodeCharInIdent");
}
@Test
public void testTabWidth() {
void testTabWidth() {
doTest("tabWidth");
}
}