Sresh Rangi wrote:The service method is calling count, which is mocked to return 0 by default. In your test, you should mock the count method instead of the findAll method.
Tim Holloway wrote:You're expecting a 2006 solution to still apply 6 years later?
Bauke hasn't been heard from for about 3 years now.
Mark Spritzler wrote:The hibernate.cfg.xml is if you are not using JPA with Hibernate, if you are, then you will use the persistence.xml file instead of the hibernate.cfg.xml. Of course, this is all for Hibernate version 3.x anyone using a version before will only use the hibernate.cfg.xml.
Mark