RESOLVED - BATCH-696: JdbcPlayerDaoIntegrationTests fail due to rows added to customer table by other test

applied Thomas' patch
This commit is contained in:
robokaso
2008-07-01 09:51:59 +00:00
parent 01fd3e3c49
commit c82bebcafc
2 changed files with 16 additions and 1 deletions

View File

@@ -38,7 +38,15 @@ public class JdbcPlayerDaoIntegrationTests extends AbstractTransactionalDataSour
player.setBirthYear(1975);
player.setDebutYear(1998);
}
protected void onSetUpInTransaction() throws Exception {
super.onSetUpInTransaction();
jdbcTemplate.execute("delete from PLAYERS");
}
public void testSavePlayer(){
playerDao.savePlayer(player);

View File

@@ -56,6 +56,13 @@ public class JdbcPlayerSummaryDaoIntegrationTests extends
summary.setTotalTd(0);
}
protected void onSetUpInTransaction() throws Exception {
super.onSetUpInTransaction();
jdbcTemplate.execute("delete from PLAYER_SUMMARY");
}
public void testWrite() {
playerSummaryDao.write(summary);