I'm a confused about the AbstractJpaTests class and why it has been marked as deprecated in Spring 3.
The apidocs say one should use "the listener-based test context framework (AbstractJUnit38SpringContextTests)".
How can I write JPA integration tests and how do I get the Entity Manager? I read in the documentation that since Spring 3 one can use @PersistenceUnit directly in the tests.
What about this classloader issues that are addresses win AbstractJpaTests with the shadowing class loader, are they solved in Spring 3 or even Spring 2.5 at all?
Hope someone can explain to me how to write transactional JPA tests without using AbstractJpaTests.


Reply With Quote
