@Test
public void testImportedTypesMatch() {
Source s = new Source(IMPORTS_SOURCE, "ImportsTest.java");
s.parseCompilationUnit();
final AtomicInteger hit = new AtomicInteger();
s.getNodes().get(0).accept(new ForwardingAstVisitor() {
@Override public boolean visitMethodDeclaration(MethodDeclaration node) {
assertFalse("typesMatch with java.awt.List+java.util.* imported should NOT match java.util.List",
new Resolver().typesMatch("java.util.List", node.astReturnTypeReference()));
assertTrue("typesMatch with java.awt.List+java.util.* imported SHOULD match java.awt.List",
new Resolver().typesMatch("java.awt.List", node.astReturnTypeReference()));