forked from phoedos/pmd
[go] Migrate tests to Junit5
This commit is contained in:
parent
9f340bd1c0
commit
4284583261
@ -60,8 +60,8 @@
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -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 GoTokenizerTest extends CpdTextComparisonTest {
|
||||
class GoTokenizerTest extends CpdTextComparisonTest {
|
||||
|
||||
public GoTokenizerTest() {
|
||||
GoTokenizerTest() {
|
||||
super(".go");
|
||||
}
|
||||
|
||||
@ -27,22 +27,22 @@ public class GoTokenizerTest extends CpdTextComparisonTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void simpleTest() {
|
||||
void simpleTest() {
|
||||
doTest("hello");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bigFileTest() {
|
||||
void bigFileTest() {
|
||||
doTest("btrfs");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIssue1751() {
|
||||
void testIssue1751() {
|
||||
doTest("issue-1751");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnicode() {
|
||||
void testUnicode() {
|
||||
// https://github.com/pmd/pmd/issues/2752
|
||||
doTest("sample_unicode");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user