Results 1 to 5 of 5

Thread: Tesing Spring JPA DAO's

  1. #1
    Join Date
    Aug 2004
    Location
    UK
    Posts
    108

    Default Testing Spring JPA DAO's

    Hi,

    I'm looking for some good tutorials / howto's about writing tests for Spring DAOs that use JPA for persistence.

    I've found quite a few for Spring 2.5, but nothing really for Spring 3.

    Does anyone know of any?

    Thanks,

    Dave.
    Last edited by DaveyS; Apr 15th, 2011 at 07:28 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    There isn't really any difference so not sure what you are looking for...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    108

    Default

    Basically I'm looking for something that doesn't use AbstractJpaTests as that is deprecated in Spring 3.

    The majority of articles I've seen use AbstractJpaTests which I'd rather not use if possible as I'm using Spring 3.

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    Simply use the AbstractTransactionalJUnit4ContextTest instead of the Jpa stuff...This is also documented in the reference guide (especially the what is new part if I'm not mistaken).
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    108

    Default

    Thanks for the pointer Marten, I've got it all working now.

    Cheers.

Tags for this Thread

Posting Permissions

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