forked from phoedos/pmd
[objectivec] Migrate tests to Junit5
This commit is contained in:
@ -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>
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user