editor.applyTextDelta(null);
editor.applyTextDelta("dir2/test.txt", null);
    public void doTestCommit() throws Throwable {        ISVNWorkspaceMediator mediator = new SVNCommitMediator(null);        ISVNEditor editor = getRepository().getCommitEditor("add dir", mediator);        try {            editor.openRoot(1);             editor.addDir("dir2", null, -1); // open            editor.changeDirProperty("testDirProperty", "testDirValue");            editor.addFile("dir2/test.txt", null, -1);            editor.applyTextDelta(null);            SVNDiffWindow window = SVNDiffWindowBuilder.createReplacementDiffWindow(4);            OutputStream os = editor.textDeltaChunk(window);            os.write("test".getBytes());            os.close();            editor.textDeltaEnd();            editor.closeFile(null);                        editor.closeDir(); // added dir2                        editor.closeDir(); // ROOT            SVNCommitInfo info = editor.closeEdit();                        assertNotNull(info);            assertEquals(info.getNewRevision(), 2);            editor = getRepository().getCommitEditor("change file and copy dir", mediator);            editor.openRoot(2);            editor.addDir("addedDir", null, -1); // open            editor.closeDir(); // close                        editor.openDir("dir2", 2); //open            editor.openFile("dir2/test.txt", 2);            editor.applyTextDelta(null);            window = SVNDiffWindowBuilder.createReplacementDiffWindow(8);            os = editor.textDeltaChunk(window);            os.write("modified".getBytes());            os.close();            editor.textDeltaEnd();            editor.closeFile(null);            editor.closeDir(); // close            // like here close dir is called for root?            editor.closeDir(); // ROOT                        info = editor.closeEdit();                        editor = getRepository().getCommitEditor("delete added dir", mediator);            editor.openRoot(3);            editor.deleteEntry("addedDir", 3);            editor.closeDir(); // ROOT            info = editor.closeEdit();            assertNotNull(info);            assertEquals(info.getNewRevision(), 4);        } catch (SVNException e) {            e.printStackTrace();            editor.abortEdit();            fail(e.getMessage());        }        File dst = AllTests.createPlayground();//new File(getFixtureRoot(), "../test");        File dir = new File(getFixtureRoot(), "dir2");        try {            dir.mkdirs();            File file = new File(dir, "test.txt");            OutputStream os = new FileOutputStream(file);            os.write("modified".getBytes());            os.close();                        checkoutAll(dst);            assertEquals(getFixtureRoot(), dst);        } finally {            AllTests.deleteAll(dir);        }    }