Update junit

This commit is contained in:
Julian Murek 2024-06-19 12:58:09 +02:00
parent afd2319d78
commit e70580ac86
3 changed files with 2 additions and 42 deletions

View File

@ -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>

View File

@ -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");
}
}

View File

@ -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){