void () { VirtualFilePointer parentPointer = createRecursivePointer("parent"); VirtualFilePointer dir1Pointer = createRecursivePointer("parent/dir1"); VirtualFilePointer dir2Pointer = createRecursivePointer("parent/dir2"); VirtualFilePointer subdirPointer = createRecursivePointer("parent/dir1/subdir"); VirtualFilePointer filePointer = createPointer("parent/dir1/subdir/file.txt"); VirtualFile root = myDir(); VirtualFileSystemEntry parent = createChildDirectory(root, "parent"); VirtualFileSystemEntry dir1 = createChildDirectory(parent, "dir1"); VirtualFileSystemEntry dir2 = createChildDirectory(parent, "dir2"); VirtualFileSystemEntry subdir = createChildDirectory(dir1, "subdir"); assertPointersUnder(subdir, "xxx.txt", parentPointer, dir1Pointer, subdirPointer); assertPointersUnder(subdir.getParent(), subdir.getName(), parentPointer, dir1Pointer, subdirPointer, filePointer); assertPointersUnder(dir1.getParent(), dir1.getName(), parentPointer, dir1Pointer, subdirPointer, filePointer); assertPointersUnder(parent.getParent(), parent.getName(), parentPointer, dir1Pointer, dir2Pointer, subdirPointer, filePointer); assertPointersUnder(dir2.getParent(), dir2.getName(), parentPointer, dir2Pointer); }