void () { VirtualFile root = getOrCreateProjectBaseDir(); VirtualFile dir = createChildDirectory(root, "dir"); createChildData(dir, "somefile.txt"); final TextFilePatch patch = create("dir/somefile.txt"); MatchPatchPaths iterator = new MatchPatchPaths(myProject); List<AbstractFilePatchInProgress<?>> filePatchInProgresses = iterator.execute(Collections.singletonList(patch)); assertEquals(1, filePatchInProgresses.size()); assertEquals(root, filePatchInProgresses.get(0).getBase()); assertEquals("dir/somefile.txt", filePatchInProgresses.get(0).getCurrentPath()); assertEquals(0, filePatchInProgresses.get(0).getCurrentStrip()); FileUtil.delete(new File(dir.getPath())); }