Announcement Announcement Module
Collapse
No announcement yet.
Tests guidelines for DAO using hibernate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tests guidelines for DAO using hibernate

    Hello,

    Would any one have a reference to a site giving guilines about how to test spring DAOs using hibernate.
    The tests are similar on every project, one to many, many to many relationships... It is always the same.
    That would be nice to see a template way of programming tests this kind of tests.

    schuer

  • #2
    You can take a look at the Petclinic sample tests in the Spring distribution.

    Comment


    • #3
      Take a look also at the org.springframework.test package. This provides very useful superclasses for tests that perform data access, and hence can test Hibernate mappings and the behaviour of Hibernate DAOs.

      Today I updated the PetClinic tests to use these superclasses, and added some explanatory Javadoc. I've also added a chapter in the Reference Manual about org.springframework.test, which is included in spring-mock.jar. It should be on the website soon...

      Comment

      Working...
      X