Skip to content

Commit

Permalink
hack this thing to get it working -- the tests depend on each other a…
Browse files Browse the repository at this point in the history
…nd expect certain IDs in the table <sigh>
  • Loading branch information
erilong committed Nov 29, 2007
1 parent 0da33dd commit 573907b
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -183,14 +183,11 @@ public void validateTransactionFunctionailty() throws Exception {
SymmetricEngine[] engines2test = SymmetricEngineTestFactory
.getUnitTestableEngines();
for (SymmetricEngine engine : engines2test) {
IDbDialect dbDialect = (IDbDialect) engine.getApplicationContext().getBean(Constants.DB_DIALECT);
if (dbDialect.supportsTransactionId()) {
validateTransactionFunctionailty(engine);
}
validateTransactionFunctionailty(engine);
}
}

void validateTransactionFunctionailty(SymmetricEngine engine)
void validateTransactionFunctionailty(final SymmetricEngine engine)
throws Exception {
JdbcTemplate jdbcTemplate = getJdbcTemplate(engine);
jdbcTemplate.execute(new ConnectionCallback() {
Expand All @@ -212,7 +209,10 @@ public Object doInConnection(Connection c) throws SQLException,
if (rs.next()) {
batchId = rs.getString(1);
}
Assert.assertNotNull(batchId);
IDbDialect dbDialect = (IDbDialect) engine.getApplicationContext().getBean(Constants.DB_DIALECT);
if (dbDialect.supportsTransactionId()) {
Assert.assertNotNull(batchId);
}
stmt.close();
return null;
}
Expand Down

0 comments on commit 573907b

Please sign in to comment.