JavaCompilerCore/test/parser/RunParserTest.java

20 lines
476 B
Java
Raw Normal View History

2017-03-09 15:20:05 +00:00
package parser;
2017-04-06 14:22:36 +00:00
import de.dhbwstuttgart.parser.JavaTXParser;
2017-03-09 15:20:05 +00:00
import org.junit.Test;
2017-04-06 14:22:36 +00:00
import java.io.File;
2017-03-09 15:20:05 +00:00
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";
2017-04-06 14:22:36 +00:00
new JavaTXParser().parse(new File(args[0]));
2017-03-09 15:20:05 +00:00
}
}