RESOLVED - BATCH-696: JdbcPlayerDaoIntegrationTests fail due to rows added to customer table by other test
applied Thomas' patch
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user