0 Replies Latest reply on Aug 7, 2014 2:47 AM by avsokolov

    Run two thread concurrently in one test

    avsokolov

      I want to run in one test method two threads. Each one in their own transaction. EJB2 service is used. In both threads change the same entity state. Check result. How can I do it? I use arquillian for integration tests to make sure EJB services work OK.

      How to inject services or pass transaction in the threads?