);
KernelDeployment deployment = install(factory);
try
{
final Set<String> classes = new TreeSet<String>();
ResourceVisitor visitor = new ClassVisitor()
{
public void visit(ResourceContext resource)
{
classes.add(resource.getResourceName());
}
};
URL aURL = new URL("vfs" + System.getProperty("test.dir") + "/support/a/");
URL bURL = new URL("vfs" + System.getProperty("test.dir") + "/support/b/");
Module module = assertModule("test:0.0.0");
module.visit(visitor, visitor.getFilter(), null, aURL, bURL);
assertEquals(2, classes.size());
Iterator<String> iterator = classes.iterator();
assertEquals(iterator.next(), A.class.getSimpleName() + ".class");
assertEquals(iterator.next(), B.class.getSimpleName() + ".class");