I'm pretty sure that this topic has been debated a lot of times and believe me I already reached the last google page searching for an anwser so I really have no other place to turn to.
Basically, the same old - run the whole test in a single transation and rollback everything in the end. For some reason I cannot make this happen. I believe it has to do either with configuration or me using something that it's causing the setup to fail so here it goes.
My datasource is a ComboPooledDataSource configured in a bean as usual.
My base database class (the actual ones extend from this one) has the following annotations:
Hi,
I'm pretty sure that this topic has been debated a lot of times and believe me I already reached the last google page searching for an anwser so I really have no other place to turn to.
Basically, the same old - run the whole test in a single transation and rollback everything in the end. For some reason I cannot make this happen. I believe it has to do either with configuration or me using something that it's causing the setup to fail so here it goes.
My datasource is a
ComboPooledDataSource
configured in a bean as usual.My base database class (the actual ones extend from this one) has the following annotations:
Then the
BaseIT
has the common configuration like:The
DBUnitITConfig
basically configures factory bean like the following:It seems very straightforward so why on earth is this not working?! If anyone has a clue please point me in the right direction.
Thanks in advance, Rui