I\'m working on trying to implement a JUnit test to check the functionality of a DAO. (The DAO will create/read a basic object/table relationship).
The trouble
I have recently implemented a similar solution in some of my code using Hibernate, Spring and HSQLDB.
Its is worth noting that AbstractTransactionalJUnit4SpringContextTests
has now be deprecated - but it is still pretty straight forward to test - I cover most the details here: http://automateddeveloper.blogspot.com/2011/05/hibernate-spring-testing-dao-layer-with.html