Hi,
I've got some Spring/Hibernate Unit Tests which I have implemented by extending the AbstractTransactionalDataSourceSpringContextTests Class. Two of them run fine when I execute the Tests in eclipse, but they fail everytime i run them with maven/surefire.
There are no error stacktraces, i get the following in the logs:
Seems that it tries to update something in the DB when it's supposed to read...Code:DEBUG [ 2007-06-21 17:57:48,062 ] at.detoxcare.core.util.StatisticsHelper.getHoursPM: 168 Getting KursTeilnahme Objects for Kurs Lernzentrum between Mon Jan 01 00:00:00 CET 2007 and Mon Dec 31 23:59:59 CET 2007 DEBUG [ 2007-06-21 17:57:48,078 ] org.hibernate.jdbc.AbstractBatcher.log: 401 update Kurs set bereich=?, beschreibung=?, kursleiter=?, name=? where id=? DEBUG [ 2007-06-21 17:57:48,078 ] org.hibernate.jdbc.AbstractBatcher.log: 401 update Kurs set bereich=?, beschreibung=?, kursleiter=?, name=? where id=? INFO [ 2007-06-21 17:57:48,078 ] org.springframework.test.AbstractTransactional springContextTests.endTransaction: 290 Rolled back transaction after test execution
Has anyone experienced something like that or has a clue how to fix it?


Reply With Quote
