From a38b796a6f992adcb80cc2f7a0516589e30c03bf Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Thu, 9 Mar 2017 16:20:05 +0100 Subject: [PATCH] ImportTest2 --- test/parser/ImportTest2.jav | 4 ++++ test/parser/RunParserTest.java | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/parser/ImportTest2.jav create mode 100644 test/parser/RunParserTest.java diff --git a/test/parser/ImportTest2.jav b/test/parser/ImportTest2.jav new file mode 100644 index 00000000..3492e31c --- /dev/null +++ b/test/parser/ImportTest2.jav @@ -0,0 +1,4 @@ +import java.util.ArrayList; + +class ImportTest{ +} \ No newline at end of file diff --git a/test/parser/RunParserTest.java b/test/parser/RunParserTest.java new file mode 100644 index 00000000..dd8db38e --- /dev/null +++ b/test/parser/RunParserTest.java @@ -0,0 +1,18 @@ +package parser; + +import de.dhbwstuttgart.parser.RunParser; +import org.junit.Test; + +import static org.junit.Assert.*; + +public class RunParserTest { + + private static final String rootDirectory = System.getProperty("user.dir")+"/test/parser/"; + + @Test + public void testMain() throws Exception { + String[] args = new String[1]; + args[0] = rootDirectory+"ImportTest2.jav"; + RunParser.main(args); + } +} \ No newline at end of file