From 27ee00b069510ed4314bae15b902044bd0005c5e Mon Sep 17 00:00:00 2001 From: Andreas Stadelmeier Date: Wed, 15 Mar 2023 19:07:41 +0100 Subject: [PATCH] Changed Parser Test --- src/test/java/parser/GeneralParserTest.java | 36 +++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/test/java/parser/GeneralParserTest.java b/src/test/java/parser/GeneralParserTest.java index 5f038c24..5a23ae5d 100644 --- a/src/test/java/parser/GeneralParserTest.java +++ b/src/test/java/parser/GeneralParserTest.java @@ -26,25 +26,27 @@ public class GeneralParserTest { public void run() { List filenames = new ArrayList(); - /* - * filenames.add("NewTest.jav"); - * filenames.add("FieldInitializationTest.jav"); - * filenames.add("ImportTest.jav"); - * filenames.add("CastTest.jav"); - * filenames.add("StatementsTest.jav"); - * //filenames.add("Methods.jav"); - * filenames.add("ImportTestGeneric.jav"); - * filenames.add("CastTest.jav"); - * //filenames.add("BoundedParameter.jav"); - * //filenames.add("GenericFieldVarTest.jav"); - * filenames.add("FieldVarTest.jav"); - * filenames.add("StructuralTypes.jav"); - * filenames.add("ExtendsTest.jav"); - * filenames.add("PackageNameTest.jav"); - */ + filenames.add("NewTest.jav"); + filenames.add("FieldInitializationTest.jav"); + filenames.add("ImportTest.jav"); + filenames.add("CastTest.jav"); + filenames.add("StatementsTest.jav"); + //filenames.add("Methods.jav"); + filenames.add("ImportTestGeneric.jav"); + filenames.add("CastTest.jav"); + //filenames.add("BoundedParameter.jav"); + //filenames.add("GenericFieldVarTest.jav"); + filenames.add("FieldVarTest.jav"); + filenames.add("StructuralTypes.jav"); + filenames.add("ExtendsTest.jav"); + filenames.add("PackageNameTest.jav"); filenames.add("AntlrTest.jav"); 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) { exc.printStackTrace(); fail();