Hi all,

Right now I’m writing test cases using AbstractTransactionalDataSourceSpringContextTests as a base class for my tests. This is very smooth as I can use jdbcTemplate out of the box and benefit from automatic transaction handling.
Ok, now I would like to write several test cases/test methods that depend on the same test data and preconditions. My question is where to put these common parts.
I cannot initialize in the onSetUp()–method as these are called on each transaction. Alternatively, I tried putting my test classes in a test suite. However, this does not work with tests that are not of type TestCase.
Does anyone have experience with that?
/M