Testing Databases with JUnit and Hibernate Part 2: The Mother of All Things
In the first part of this little series I showed a simple test based on a simple data model. As we saw the code for the test wasn’t simple at all, but quite ugly. We started to fix that by moving out all the SessionFactory and Session handling stuff out into a Rule.
Want to have your say? just login


Be first to show your opinion !!!