From 1a0c76accfb9c11fc4cab7723e1086b836896785 Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Fri, 6 Nov 2015 15:18:43 +0100 Subject: [PATCH] Anpassungen im Test --- .../TypeInsertTests/MultipleTypesInsertTester.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/plugindevelopment/TypeInsertTests/MultipleTypesInsertTester.java b/test/plugindevelopment/TypeInsertTests/MultipleTypesInsertTester.java index d4fee620..db3346a1 100755 --- a/test/plugindevelopment/TypeInsertTests/MultipleTypesInsertTester.java +++ b/test/plugindevelopment/TypeInsertTests/MultipleTypesInsertTester.java @@ -47,8 +47,10 @@ public class MultipleTypesInsertTester extends TypeInsertTester{ MyCompilerAPI compiler = MyCompiler.getAPI(logConfig); try { - compiler.parse(new File(rootDirectory + sourceFileToInfere)); - Menge results = compiler.typeReconstruction(); + SourceFile parsedFile = compiler.parse(new File(rootDirectory + sourceFileToInfere)); + Menge parsedFiles = new Menge<>(); + parsedFiles.add(parsedFile); + Menge results = compiler.typeReconstruction(parsedFiles); System.out.println("Typinferenz ausgeführt!"); //TestCase.assertTrue("Es darf nicht mehr als eine Lösungsmöglichkeit geben und nicht "+results.size(), results.size()==1); for(TypeinferenceResultSet result : results){