[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>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>

View File

@ -6,14 +6,14 @@ package net.sourceforge.pmd.lang.tsql.cpd;
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.test.CpdTextComparisonTest;
public class TSqlTokenizerTest extends CpdTextComparisonTest {
class TSqlTokenizerTest extends CpdTextComparisonTest {
public TSqlTokenizerTest() {
TSqlTokenizerTest() {
super(".sql");
}
@ -28,12 +28,12 @@ public class TSqlTokenizerTest extends CpdTextComparisonTest {
}
@Test
public void simpleTest() {
void simpleTest() {
doTest("simple");
}
@Test
public void mailJobTimeLineTest() {
void mailJobTimeLineTest() {
doTest("MailJobTimeLine");
}
}

View File

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