From 63b4dbcc10d0fe3b035b05107a7bf236451cf302 Mon Sep 17 00:00:00 2001 From: Till Schnell Date: Sat, 27 Mar 2021 17:39:42 +0100 Subject: [PATCH] correct test methods visibility --- src/test/java/inferWildcards/TestInferWildcards.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/test/java/inferWildcards/TestInferWildcards.java b/src/test/java/inferWildcards/TestInferWildcards.java index 885d5969..cce67c9d 100644 --- a/src/test/java/inferWildcards/TestInferWildcards.java +++ b/src/test/java/inferWildcards/TestInferWildcards.java @@ -16,6 +16,7 @@ import com.sun.source.tree.CompilationUnitTree; import com.sun.source.util.JavacTask; import de.dhbwstuttgart.inferWildcards.InferWildcardsVisitor; +import de.dhbwstuttgart.typeinference.constraints.ConstraintSet; public class TestInferWildcards { @@ -24,7 +25,7 @@ public class TestInferWildcards private StandardJavaFileManager fileManager; @Before - void setup () { + public void setup () { compiler = ToolProvider.getSystemJavaCompiler(); fileManager = compiler.getStandardFileManager(null, null, null); } @@ -37,7 +38,7 @@ public class TestInferWildcards } @Test - void test () throws Exception { + public void test () throws Exception { String resourcePath = System.getProperty("user.dir") + "/src/test/resources/inferWildcards"; File[] files1 = { new File(resourcePath + "/TestClassWildcards.java") }; @@ -45,7 +46,11 @@ public class TestInferWildcards for (CompilationUnitTree t : iterable) { System.out.println("unit: " + t.toString()); - t.accept(new InferWildcardsVisitor(), null); + InferWildcardsVisitor inferWildcardsVisitor = new InferWildcardsVisitor(); + t.accept(inferWildcardsVisitor, null); + ConstraintSet constraintSet = inferWildcardsVisitor.getConstraintSet(); + System.out.println("Constraints: " + constraintSet); } + } }