assertEquals(expected, filter.getVisited());
}
public void testGetAllChildrenRecursivelyWithFilterStructured() throws Exception
{
MockVFSContext context = registerStructuredVFSContextWithSubChildren();
VirtualFile child1 = getChildHandler(context, "child1").getVirtualFile();
VirtualFile child11 = getChildHandler(context, "child1/child1,1").getVirtualFile();
VirtualFile child2 = getChildHandler(context, "child2").getVirtualFile();
VirtualFile child21 = getChildHandler(context, "child2/child2,1").getVirtualFile();
VirtualFile child22 = getChildHandler(context, "child2/child2,2").getVirtualFile();
VirtualFile child3 = getChildHandler(context, "child3").getVirtualFile();
VirtualFile child31 = getChildHandler(context, "child3/child3,1").getVirtualFile();
VirtualFile child32 = getChildHandler(context, "child3/child3,2").getVirtualFile();
VirtualFile child33 = getChildHandler(context, "child3/child3,3").getVirtualFile();
VirtualFile file = VFS.getRoot(context.getRootURI());
MockVirtualFileFilter filter = new MockVirtualFileFilter();
List<VirtualFile> children = file.getChildrenRecursively(filter);
assertNotNull(children);
List<VirtualFile> expected = new ArrayList<VirtualFile>();