[dart] Migrate tests to Junit5
This commit is contained in:
@@ -62,8 +62,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,13 +6,13 @@ 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 DartTokenizerTest extends CpdTextComparisonTest {
|
class DartTokenizerTest extends CpdTextComparisonTest {
|
||||||
|
|
||||||
public DartTokenizerTest() {
|
DartTokenizerTest() {
|
||||||
super(".dart");
|
super(".dart");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,75 +23,75 @@ public class DartTokenizerTest extends CpdTextComparisonTest {
|
|||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testComment() {
|
void testComment() {
|
||||||
doTest("comment");
|
doTest("comment");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEscapeSequences() {
|
void testEscapeSequences() {
|
||||||
doTest("escape_sequences");
|
doTest("escape_sequences");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEscapedBackslash() {
|
void testEscapedBackslash() {
|
||||||
doTest("escaped_backslash");
|
doTest("escaped_backslash");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEscapedString() {
|
void testEscapedString() {
|
||||||
doTest("escaped_string");
|
doTest("escaped_string");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIncrement() {
|
void testIncrement() {
|
||||||
doTest("increment");
|
doTest("increment");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testImports() {
|
void testImports() {
|
||||||
doTest("imports");
|
doTest("imports");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStringInterpolation() {
|
void testStringInterpolation() {
|
||||||
doTest("string_interpolation");
|
doTest("string_interpolation");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEscapedDollar() {
|
void testEscapedDollar() {
|
||||||
doTest("escaped_dollar");
|
doTest("escaped_dollar");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRegex() {
|
void testRegex() {
|
||||||
doTest("regex");
|
doTest("regex");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRegex2() {
|
void testRegex2() {
|
||||||
doTest("regex2");
|
doTest("regex2");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testRegex3() {
|
void testRegex3() {
|
||||||
doTest("regex3");
|
doTest("regex3");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStringWithBackslashes() {
|
void testStringWithBackslashes() {
|
||||||
doTest("string_with_backslashes");
|
doTest("string_with_backslashes");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMultiline() {
|
void testMultiline() {
|
||||||
doTest("string_multiline");
|
doTest("string_multiline");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testTabWidth() {
|
void testTabWidth() {
|
||||||
doTest("tabWidth");
|
doTest("tabWidth");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user