diff --git a/test/parser/ImportTest2.jav b/test/parser/ImportTest2.jav new file mode 100644 index 000000000..3492e31c5 --- /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 000000000..dd8db38e4 --- /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