Results 1 to 3 of 3

Thread: Tests guidelines for DAO using hibernate

  1. #1
    Join Date
    Jan 2005
    Posts
    17

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

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

  3. #3
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    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...
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Replies: 5
    Last Post: Dec 27th, 2005, 07:00 AM
  2. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM
  3. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  4. Replies: 9
    Last Post: Sep 25th, 2004, 12:35 PM
  5. Replies: 7
    Last Post: Aug 21st, 2004, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •