### Question:
DefaultExecutedScriptInfoSource implements ExecutedScriptInfoSource { public void deleteAllExecutedPostprocessingScripts() { checkExecutedScriptsTable(); for (Iterator<ExecutedScript> executedScriptsIterator = getExecutedScripts().iterator(); executedScriptsIterator.hasNext();) { ExecutedScript executedScript = executedScriptsIterator.next(); if (executedScript.getScript().isPostProcessingScript()) { executedScriptsIterator.remove(); String deleteSql = "delete from " + getQualifiedExecutedScriptsTableName() + " where " + fileNameColumnName + " = '" + executedScript.getScript().getFileName() + "'"; sqlHandler.executeUpdateAndCommit(deleteSql, defaultDatabase.getDataSource()); } } } DefaultExecutedScriptInfoSource(boolean autoCreateExecutedScriptsTable, String executedScriptsTableName, String fileNameColumnName,
                                           int fileNameColumnSize, String fileLastModifiedAtColumnName, String checksumColumnName, int checksumColumnSize,
                                           String executedAtColumnName, int executedAtColumnSize, String succeededColumnName, DateFormat timestampFormat,
                                           Database defaultSupport, SQLHandler sqlHandler, ScriptFactory scriptFactory); SortedSet<ExecutedScript> getExecutedScripts(); void registerExecutedScript(ExecutedScript executedScript); void updateExecutedScript(ExecutedScript executedScript); void deleteExecutedScript(ExecutedScript executedScript); void renameExecutedScript(ExecutedScript executedScript, Script renamedToScript); void deleteAllExecutedPreprocessingScripts(); void deleteAllExecutedPostprocessingScripts(); void clearAllExecutedScripts(); void markErrorScriptsAsSuccessful(); void removeErrorScripts(); void resetCachedState();  }### Answer:
@Test void deleteAllExecutedPostprocessingScripts() { executedScriptInfoSource.registerExecutedScript(executedScript1); executedScriptInfoSource.registerExecutedScript(executedPostprocessingScript); assertEquals(2, executedScriptInfoSource.getExecutedScripts().size()); executedScriptInfoSource.deleteAllExecutedPostprocessingScripts(); assertEquals(1, executedScriptInfoSource.getExecutedScripts().size()); assertEquals(executedScript1, executedScriptInfoSource.getExecutedScripts().first()); initExecutedScriptInfoSource(); assertEquals(1, executedScriptInfoSource.getExecutedScripts().size()); assertEquals(executedScript1, executedScriptInfoSource.getExecutedScripts().first()); }