[tsql] Update test to JUnit5 and fix it

This commit is contained in:
Andreas Dangel
2023-02-17 11:47:57 +01:00
parent 2c3f945b4d
commit c1209263fc
4 changed files with 2055 additions and 2055 deletions

View File

@ -39,8 +39,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>

View File

@ -6,14 +6,14 @@ package net.sourceforge.pmd.lang.tsql.cpd;
import java.util.Properties; import java.util.Properties;
import org.junit.Test; import org.junit.jupiter.api.Test;
import net.sourceforge.pmd.cpd.Tokenizer; import net.sourceforge.pmd.cpd.Tokenizer;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest; import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
public class TSqlTokenizerTest extends CpdTextComparisonTest { class TSqlTokenizerTest extends CpdTextComparisonTest {
public TSqlTokenizerTest() { TSqlTokenizerTest() {
super(".sql"); super(".sql");
} }
@ -28,12 +28,12 @@ public class TSqlTokenizerTest extends CpdTextComparisonTest {
} }
@Test @Test
public void simpleTest() { void simpleTest() {
doTest("simple"); doTest("simple");
} }
@Test @Test
public void mailJobTimeLineTest() { void mailJobTimeLineTest() {
doTest("MailJobTimeLine"); doTest("MailJobTimeLine");
} }
} }

View File

@ -1,28 +1,28 @@
[Image] or [Truncated image[ Bcol Ecol [Image] or [Truncated image[ Bcol Ecol
L1 L1
[create] 1 6 [create] 1 7
[procedure] 8 16 [procedure] 8 17
[p] 18 18 [p] 18 19
[(] 20 20 [(] 20 21
[@v] 21 22 [@v] 21 23
[int] 24 26 [int] 24 27
[)] 27 27 [)] 27 28
[as] 29 30 [as] 29 31
[begin] 32 36 [begin] 32 37
L2 L2
[declare] 2 8 [declare] 2 9
[@f] 10 11 [@f] 10 12
[int] 13 15 [int] 13 16
L3 L3
[set] 2 4 [set] 2 5
[@f] 6 7 [@f] 6 8
[=] 9 9 [=] 9 10
[@v] 11 12 [@v] 11 13
[+] 14 14 [+] 14 15
[2] 16 16 [2] 16 17
L4 L4
[select] 2 7 [select] 2 8
[@f] 9 10 [@f] 9 11
L5 L5
[end] 1 3 [end] 1 4
EOF EOF