File to test Token-Generation

This commit is contained in:
KingJulian 2024-05-09 18:35:40 +02:00
parent 4c73ae6786
commit 309aff9576

View File

@ -0,0 +1,34 @@
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");
}
}