diff --git a/src/test/java/Tokens/All.java b/src/test/java/Tokens/All.java new file mode 100644 index 0000000..5bd5ed1 --- /dev/null +++ b/src/test/java/Tokens/All.java @@ -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"); + } +}