-
Apr 15th, 2011, 06:20 AM
#1
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.
-
Apr 15th, 2011, 08:16 AM
#2
There isn't really any difference so not sure what you are looking for...
-
Apr 15th, 2011, 08:20 AM
#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.
-
Apr 15th, 2011, 08:46 AM
#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).
-
Apr 15th, 2011, 10:49 AM
#5
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
-
Forum Rules