Update junit
This commit is contained in:
parent
afd2319d78
commit
e70580ac86
8
pom.xml
8
pom.xml
@ -24,17 +24,11 @@
|
||||
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<version>5.7.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.13.1</version>
|
||||
<scope>compile</scope>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
|
@ -1,34 +0,0 @@
|
||||
package Tokens;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class All {
|
||||
JavaLexerTest testLexer;
|
||||
public All(){
|
||||
testLexer = new JavaLexerTest("test/resources");
|
||||
}
|
||||
|
||||
private static void main(String[] args){
|
||||
All tester = new All();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyClass() throws Exception {
|
||||
testLexer.testTokens("basicClasses/emptyClass.java", "basicClasses/emptyClass.tokens");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyClassWithConstructor() throws Exception {
|
||||
testLexer.testTokens("basicClasses/EmptyClassWithConstructor.java", "basicClasses/EmptyClassWithConstructor.tokens");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFourClasses() throws Exception {
|
||||
testLexer.testTokens("basicClasses/FourClasses.java", "basicClasses/FourClasses.tokens");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPublicEmptyClass() throws Exception {
|
||||
testLexer.testTokens("basicClasses/PublicEmptyClass.java", "basicClasses/PublicEmptyClass.tokens");
|
||||
}
|
||||
}
|
@ -5,7 +5,7 @@ import org.junit.Test;
|
||||
public class TestAll {
|
||||
JavaLexerTest testLexer;
|
||||
public TestAll(){
|
||||
testLexer = new JavaLexerTest("src/test/resources");
|
||||
testLexer = new JavaLexerTest("test/resources");
|
||||
}
|
||||
|
||||
private static void main(String[] args){
|
||||
|
Loading…
Reference in New Issue
Block a user