From 309aff9576646b623c41953e7207b6399a46990d Mon Sep 17 00:00:00 2001 From: KingJulian Date: Thu, 9 May 2024 18:35:40 +0200 Subject: [PATCH] File to test Token-Generation --- src/test/java/Tokens/All.java | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/test/java/Tokens/All.java 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"); + } +}