1. What unit test to write for a class using generics in Java? stackoverflow.com
Taking the very specific example of the
2. Hibernate / DAO pattern / Unit testing forum.hibernate.org
In a traditional dao pattern I can intercept all (crud) calls to from the database and so use dao mocking effectively to allow unit testing of my app logic in isolation from the db. Can someone confirm that this is not possible once we use Hibernate and other orm (unless all the hibernate code lives inside the dao layer and we ...