diff --git a/src/main/test/java/MainTest.java b/src/main/test/java/MainTest.java index f9e848e..516ab6e 100644 --- a/src/main/test/java/MainTest.java +++ b/src/main/test/java/MainTest.java @@ -21,7 +21,7 @@ public class MainTest { void testEmptyClass() { CharStream codeCharStream = null; try { - codeCharStream = CharStreams.fromPath(Paths.get("src/main/test/resources/EmptyClassExample.java")); + codeCharStream = CharStreams.fromPath(Paths.get("src/main/test/resources/CompilerInput.txt")); Main.parsefile(codeCharStream); } catch (IOException e) { System.err.println("Error reading the file: " + e.getMessage()); diff --git a/src/main/test/resources/CompilerInput.txt b/src/main/test/resources/CompilerInput.txt new file mode 100644 index 0000000..918c686 --- /dev/null +++ b/src/main/test/resources/CompilerInput.txt @@ -0,0 +1,13 @@ +public class Example { + + public int testVar; + + public static int testMethod(char b){ + + int a; + int a; + + + } + +} \ No newline at end of file