Edit | Attach | New | Raw | Delete | History | Print | Tools

Maven Integration Tests

When doing integration tests with Maven and JUnit, keep in mind that Maven will setup several tests in parallel. This can be problematic if you are configuring a transaction manager instance and/or Spring application contexts within the setUp of your JUNit tests cases.

To avoid this problem, make sure to start the maven tests in serial mode, like this:

mvn -DforkMode=once test
spacer
Copyright © 2014 Atomikos BVBA. Transaction Management for Extreme Transaction Processing and SOA Environments serving ISV, Commercial, OEM and Open Source Markets
Site map RSS ATOM