public boolean accepts(ResourceContext resource)
{
return "b".equals(resource.getResourceName());
}
};
FederatedResourceVisitor fedRV = new FederatedResourceVisitor(
new ResourceVisitor[]{visitor, visitor},
null,
new ResourceFilter[]{rfA, rfB}
);
Module module = assertModule("test:0.0.0");
module.visit(fedRV, fedRV.getFilter(), fedRV.getRecurseFilter());
assertEquals(2, classes.size());
assertTrue(classes.contains("a/A.class"));
assertTrue(classes.contains("b/B.class"));
}