DirectToDbApplier implements ChangeScriptApplier { public void begin() { try { queryExecuter.setAutoCommit(false); } catch (SQLException e) { throw new RuntimeException(e); } } DirectToDbApplier(QueryExecuter queryExecuter, DatabaseSchemaVersionManager schemaVersionManager, QueryStatementSplitter splitter); void apply(List<ChangeScript> changeScript); void begin();  }
@Test public void shouldSetConnectionToManualCommitModeAtStart() throws Exception { applier.begin(); verify(queryExecuter).setAutoCommit(false); }