assertFindChild(root, "child3", child3);
}
public void testFindChildSubChildren() 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 root = VFS.getRoot(context.getRootURI());
assertFindChild(root, "", root);
VirtualFile found1 = assertFindChild(root, "child1", child1);
assertFindChild(root, "child1/child1,1", child11);
assertFindChild(found1, "child1,1", child11);