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