public void testVisit() throws Exception
{
VFSContext context = getVFSContext("children");
VirtualFileHandler root = context.getRoot();
MockVirtualFileHandlerVisitor visitor = new MockVirtualFileHandlerVisitor();
context.visit(root, visitor);
Set<String> expected = new HashSet<String>();
expected.add("child1");
expected.add("child2");
expected.add("child3");
Set<String> actual = new HashSet<String>();
for (VirtualFileHandler child : visitor.getVisited())
{
if (child.getName().startsWith("META-INF") == false && child.getName().equals(".svn") == false)
actual.add(child.getName());
}