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