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.
Printable View
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.
There isn't really any difference so not sure what you are looking for...
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.
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).
Thanks for the pointer Marten, I've got it all working now.
Cheers.