[matlab] Migrate tests to Junit5

This commit is contained in:
Andreas Dangel 2022-07-29 17:24:46 +02:00
parent 394c0cbf3b
commit cded733c9b
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3
2 changed files with 10 additions and 10 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,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 MatlabTokenizerTest extends CpdTextComparisonTest {
class MatlabTokenizerTest extends CpdTextComparisonTest {
public MatlabTokenizerTest() {
MatlabTokenizerTest() {
super(".m");
}
@ -27,28 +27,28 @@ public class MatlabTokenizerTest extends CpdTextComparisonTest {
}
@Test
public void testLongSample() {
void testLongSample() {
doTest("sample-matlab");
}
@Test
public void testIgnoreBetweenSpecialComments() {
void testIgnoreBetweenSpecialComments() {
doTest("specialComments");
}
@Test
public void testComments() {
void testComments() {
doTest("comments");
}
@Test
public void testBlockComments() {
void testBlockComments() {
doTest("multilineComments");
}
@Test
public void testQuestionMark() {
void testQuestionMark() {
doTest("questionMark");
}