1. How to test a DAO with JPA implementation? stackoverflow.comHi I came from the Spring camp , I don't want to use Spring , and am migrating to JavaEE6 , But I have problem testing DAO + JPA , here ... |
2. Testing DAOs and having to flush EntityManager manually forum.hibernate.orgNewbie Joined: Tue Jun 23, 2009 7:59 am Posts: 6 Hello, I'm getting duplicated rows on the database when testing my DAOs but if I flush the EntityManager manually I get only one. The base Test class: Code: public abstract class IntegrationDAOTest { protected EntityManagerFactory emf; protected EntityManager em; protected EntityTransaction tx; ... |
3. Dao testing forum.hibernate.orgHello, I'm trying to code a Dao class and its integration testing but I run into several issues. Here is the Dao class: Code: public class PreferenceHibernateDao extends HibernateDaoSupport implements PreferenceDao { private static Logger logger = Logger.getLogger(PreferenceHibernateDao.class); private static final Class |
4. how to test DAOs? forum.hibernate.orgHi, maybe a little bit offtopic, but maybe you have some tips: how to testDAOs? After migration to hibernate 3, I found out, that some HQLs are not working anymore. The best will be to run integration test against all DAO classes: something , like generate parameters for DAO method, than invoke the method, and see whether some exception raises. this ... |