@Before public void initialize() throws Exception { defaultDatabase = TestUtils.getDatabases().getDefaultDatabase(); dataSource = defaultDatabase.getDataSource(); executedScriptInfoSource = getDefaultExecutedScriptInfoSource(defaultDatabase, true); executedScriptInfoSource.registerExecutedScript(createScript("1_folder/1_script.sql")); executedScriptInfoSource.registerExecutedScript(createScript("1_folder/2_script.sql")); executedScriptInfoSource.registerExecutedScript(createScript("2_folder/1_script.sql")); executedScriptInfoSource.registerExecutedScript(createScript("repeatable/script.sql")); executedScriptInfoSource.registerExecutedScript(createScript("postprocessing/script.sql")); }
private ExecutedScript createScript(String scriptName) throws ParseException { return new ExecutedScript( TestUtils.createScript(scriptName), parseDate("20/05/2008 10:20:00", new String[] {"dd/MM/yyyy hh:mm:ss"}), false); }