JavaTXCompilerInJavaTX/test/parser/RunParserTest.java

20 lines
476 B
Java

package parser;
import de.dhbwstuttgart.parser.JavaTXParser;
import org.junit.Test;
import java.io.File;
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";
new JavaTXParser().parse(new File(args[0]));
}
}