correct test methods visibility
This commit is contained in:
parent
ca816fba85
commit
63b4dbcc10
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user