forked from JavaTX/JavaCompilerCore
Tests ändern
This commit is contained in:
parent
ed56e24ff6
commit
e1af4e1f65
@ -29,7 +29,6 @@ public class GeneralParserTest{
|
|||||||
filenames.add("ImportTest.jav");
|
filenames.add("ImportTest.jav");
|
||||||
filenames.add("CastTest.jav");
|
filenames.add("CastTest.jav");
|
||||||
filenames.add("StatementsTest.jav");
|
filenames.add("StatementsTest.jav");
|
||||||
filenames.add("Methods.jav");
|
|
||||||
filenames.add("ImportTestGeneric.jav");
|
filenames.add("ImportTestGeneric.jav");
|
||||||
filenames.add("CastTest.jav");
|
filenames.add("CastTest.jav");
|
||||||
//filenames.add("BoundedParameter.jav");
|
//filenames.add("BoundedParameter.jav");
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
package parser;
|
package parser;
|
||||||
|
|
||||||
|
import de.dhbwstuttgart.parser.JavaTXParser;
|
||||||
import de.dhbwstuttgart.parser.RunParser;
|
import de.dhbwstuttgart.parser.RunParser;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
public class RunParserTest {
|
public class RunParserTest {
|
||||||
@ -13,6 +16,6 @@ public class RunParserTest {
|
|||||||
public void testMain() throws Exception {
|
public void testMain() throws Exception {
|
||||||
String[] args = new String[1];
|
String[] args = new String[1];
|
||||||
args[0] = rootDirectory+"ImportTest2.jav";
|
args[0] = rootDirectory+"ImportTest2.jav";
|
||||||
RunParser.main(args);
|
new JavaTXParser().parse(new File(args[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user