@Test public void shouldInsertToSchemaVersionTable() throws Exception { ChangeScript changeScript = new ChangeScript(1, "script.sql"); applier.insertToSchemaVersionTable(changeScript); verify(schemaVersionManager).recordScriptApplied(changeScript); }
protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); }
DirectToDbApplier implements ChangeScriptApplier { protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); } }
DirectToDbApplier implements ChangeScriptApplier { protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); } DirectToDbApplier(QueryExecuter queryExecuter, DatabaseSchemaVersionManager schemaVersionManager, QueryStatementSplitter splitter); }
DirectToDbApplier implements ChangeScriptApplier { protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); } DirectToDbApplier(QueryExecuter queryExecuter, DatabaseSchemaVersionManager schemaVersionManager, QueryStatementSplitter splitter); void apply(List<ChangeScript> changeScript); void begin(); }
DirectToDbApplier implements ChangeScriptApplier { protected void insertToSchemaVersionTable(ChangeScript changeScript) { schemaVersionManager.recordScriptApplied(changeScript); } DirectToDbApplier(QueryExecuter queryExecuter, DatabaseSchemaVersionManager schemaVersionManager, QueryStatementSplitter splitter); void apply(List<ChangeScript> changeScript); void begin();  }