extract test of unit
This commit is contained in:
parent
59b45b5f87
commit
cbe2d7b0f5
@ -49,6 +49,12 @@ public class TestInferWildcards
|
|||||||
for (CompilationUnitTree t : iterable) {
|
for (CompilationUnitTree t : iterable) {
|
||||||
System.out.println("unit: " + t.toString());
|
System.out.println("unit: " + t.toString());
|
||||||
|
|
||||||
|
testUnit(t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("rawtypes")
|
||||||
|
private void testUnit (CompilationUnitTree t) {
|
||||||
InferWildcardsVisitor inferWildcardsVisitor = new InferWildcardsVisitor();
|
InferWildcardsVisitor inferWildcardsVisitor = new InferWildcardsVisitor();
|
||||||
t.accept(inferWildcardsVisitor, null);
|
t.accept(inferWildcardsVisitor, null);
|
||||||
|
|
||||||
@ -59,7 +65,5 @@ public class TestInferWildcards
|
|||||||
// Generated TPH
|
// Generated TPH
|
||||||
Map<TypePlaceholder, Tree> placeholderMapping = inferWildcardsVisitor.getPlaceholderMapping();
|
Map<TypePlaceholder, Tree> placeholderMapping = inferWildcardsVisitor.getPlaceholderMapping();
|
||||||
System.out.println("Placeholder: " + placeholderMapping.toString());
|
System.out.println("Placeholder: " + placeholderMapping.toString());
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user