File to test Token-Generation
This commit is contained in:
parent
4c73ae6786
commit
309aff9576
34
src/test/java/Tokens/All.java
Normal file
34
src/test/java/Tokens/All.java
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user