Announcement Announcement Module
Collapse
No announcement yet.
Tesing Spring JPA DAO's Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tesing 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, 08:28 AM.

  • #2
    There isn't really any difference so not sure what you are looking for...

    Comment


    • #3
      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.

      Comment


      • #4
        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).

        Comment


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

          Cheers.

          Comment

          Working...
          X