Setup database for Unit tests with Spring, Hibernate and Spring Transaction Support
- by Michael Bulla
I want to test integration of dao-layer with my service-layer in a unit-test. So I need to setup some data in my database (hsql). For this setup I need an own transaction at the begining of my testcase to ensure that all my setup is really commited to database before starting my testcase.
So here's what I want to achieve:
// NotTranactional…