forked from JavaTX/JavaCompilerCore
Changed Parser Test
This commit is contained in:
parent
af28e033a2
commit
27ee00b069
@ -26,25 +26,27 @@ public class GeneralParserTest {
|
|||||||
public void run() {
|
public void run() {
|
||||||
|
|
||||||
List<String> filenames = new ArrayList<String>();
|
List<String> filenames = new ArrayList<String>();
|
||||||
/*
|
filenames.add("NewTest.jav");
|
||||||
* filenames.add("NewTest.jav");
|
filenames.add("FieldInitializationTest.jav");
|
||||||
* filenames.add("FieldInitializationTest.jav");
|
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("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");
|
//filenames.add("GenericFieldVarTest.jav");
|
||||||
* //filenames.add("GenericFieldVarTest.jav");
|
filenames.add("FieldVarTest.jav");
|
||||||
* filenames.add("FieldVarTest.jav");
|
filenames.add("StructuralTypes.jav");
|
||||||
* filenames.add("StructuralTypes.jav");
|
filenames.add("ExtendsTest.jav");
|
||||||
* filenames.add("ExtendsTest.jav");
|
filenames.add("PackageNameTest.jav");
|
||||||
* filenames.add("PackageNameTest.jav");
|
|
||||||
*/
|
|
||||||
filenames.add("AntlrTest.jav");
|
filenames.add("AntlrTest.jav");
|
||||||
try {
|
try {
|
||||||
new JavaTXCompiler(filenames.stream().map(s -> new File(rootDirectory + s)).collect(Collectors.toList()));
|
for(String filename : filenames){
|
||||||
|
System.out.println(filename);
|
||||||
|
new JavaTXCompiler(new File(rootDirectory + filename));
|
||||||
|
}
|
||||||
|
//new JavaTXCompiler(filenames.stream().map(s -> new File(rootDirectory + s)).collect(Collectors.toList()));
|
||||||
} catch (Exception exc) {
|
} catch (Exception exc) {
|
||||||
exc.printStackTrace();
|
exc.printStackTrace();
|
||||||
fail();
|
fail();
|
||||||
|
Loading…
Reference in New Issue
Block a user