void () { tempDir.newDirectory("folder1/folder11/folder21"); tempDir.newDirectory("folder1/folder12"); tempDir.newFile("a"); tempDir.newFile("file1"); assertComplete("f", ArrayUtil.EMPTY_STRING_ARRAY, null); assertComplete("/", new String[]{"a", "folder1", "file1"}, "a"); assertComplete("/f", new String[]{"folder1", "file1"}, "file1"); assertComplete("/fo", new String[]{"folder1"}, "folder1"); assertComplete("/folder", new String[]{"folder1"}, "folder1"); assertComplete("/folder1", new String[]{"folder1"}, "folder1"); assertComplete("/folder1/", new String[]{"folder11", "folder12"}, "folder11"); assertComplete("/folder1/folder1", new String[]{"folder11", "folder12"}, "folder11"); assertComplete("/foo", ArrayUtil.EMPTY_STRING_ARRAY, null); tempDir.newFile("qw/child.txt"); tempDir.newDirectory("qwe"); assertComplete("/qw", new String[]{"qw", "qwe"}, "qw"); assertComplete("/qw/", new String[]{"child.txt"}, "child.txt"); }