@Test public void should_split_create_tables_if_exists() throws Exception { final OracleStatementSplitter statementSplitter = new OracleStatementSplitter(); final String sqlScript = FileLoader.loadAsString("scripts/oracle-create-table-if-exists.sql"); final List<String> statements = statementSplitter.splitStatements(sqlScript); assertThat(statements).hasSize(4); }
@Override public List<String> splitStatements(String script) { return splitStatements(new StringReader(script)); }
OracleStatementSplitter implements StatementSplitter { @Override public List<String> splitStatements(String script) { return splitStatements(new StringReader(script)); } }
OracleStatementSplitter implements StatementSplitter { @Override public List<String> splitStatements(String script) { return splitStatements(new StringReader(script)); }  }
OracleStatementSplitter implements StatementSplitter { @Override public List<String> splitStatements(String script) { return splitStatements(new StringReader(script)); }  @Override void setStatementDelimiter(String statementDelimiter); @Override void setTrimStatementDelimiter(boolean trimStatementDelimiter); @Override String supports(); @Override List<String> splitStatements(String script); @Override List<String> splitStatements(Reader reader); }
OracleStatementSplitter implements StatementSplitter { @Override public List<String> splitStatements(String script) { return splitStatements(new StringReader(script)); }  @Override void setStatementDelimiter(String statementDelimiter); @Override void setTrimStatementDelimiter(boolean trimStatementDelimiter); @Override String supports(); @Override List<String> splitStatements(String script); @Override List<String> splitStatements(Reader reader);  }