assertEquals(expected, filter.getVisited());
}
public void testGetAllChildrenWithFilterStructured() throws Exception
{
MockVFSContext context = registerStructuredVFSContextWithSubChildren();
VirtualFile child1 = getChildHandler(context, "child1").getVirtualFile();
VirtualFile child2 = getChildHandler(context, "child2").getVirtualFile();
VirtualFile child3 = getChildHandler(context, "child3").getVirtualFile();
VirtualFile file = VFS.getRoot(context.getRootURI());
MockVirtualFileFilter filter = new MockVirtualFileFilter();
List<VirtualFile> children = file.getChildren(filter);
assertNotNull(children);
List<VirtualFile> expected = new ArrayList<VirtualFile>();