thread « Test « JPA Q&A





1. How to write service layer stress test with TestNG?    stackoverflow.com

I need to write a stress test for my service layer. I started doing that with Unitils, JUnit4 and JUnitPerf, but had no luck. That is why I decided to try ...

2. current_session_context_class = thread and Junit tests    forum.hibernate.org

Hello, I have a problem testing a webservice that uses hibernate to persist data. my Hibernate.cfg contains this property: Code: thread So If I understand it correctly this means that each thread gets it's own session from the sessionFactory. So each request-response is a new session. This works ok in a request, response environment. But if I run my JUnit ...