@Test public void should_execute_the_whole_script_if_delimiter_not_found() throws Exception { scriptExecutor.execute(FileLoader.loadAsString("scripts/mssql-identity-insert-off.sql")); verify(connection, times(1)).createStatement(); }
public void execute(String script) { final List<String> statements = statementSplitter.splitStatements(script); for (String statement : statements) { executeStatement(statement); } }
ScriptExecutor { public void execute(String script) { final List<String> statements = statementSplitter.splitStatements(script); for (String statement : statements) { executeStatement(statement); } } }
ScriptExecutor { public void execute(String script) { final List<String> statements = statementSplitter.splitStatements(script); for (String statement : statements) { executeStatement(statement); } } ScriptExecutor(final Connection connection, final ScriptingConfiguration scriptingConfiguration,
        final StatementSplitter statementSplitter); }
ScriptExecutor { public void execute(String script) { final List<String> statements = statementSplitter.splitStatements(script); for (String statement : statements) { executeStatement(statement); } } ScriptExecutor(final Connection connection, final ScriptingConfiguration scriptingConfiguration,
        final StatementSplitter statementSplitter); void execute(String script); }
ScriptExecutor { public void execute(String script) { final List<String> statements = statementSplitter.splitStatements(script); for (String statement : statements) { executeStatement(statement); } } ScriptExecutor(final Connection connection, final ScriptingConfiguration scriptingConfiguration,
        final StatementSplitter statementSplitter); void execute(String script);  }