[go] Migrate tests to Junit5

This commit is contained in:
Andreas Dangel 2022-07-07 17:22:24 +02:00
parent 9f340bd1c0
commit 4284583261
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
2 changed files with 9 additions and 9 deletions

View File

@ -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>

View File

@ -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");
}