According to Maven2 convention we should rename the integration tests from *Test.java to *IT.java This way they are run during the correct phase integration-test. The Failsafe Plugin takes care of that.
We then have the possibility to start up our server mocks during pre-integration-test phase and shut them down again during post-integration-test.
Additionaly these tests are only executed during mvn install or mvn verify. The integration tests are not executed during test phase. This way we can speed up development cycles.
According to Maven2 convention we should rename the integration tests from *Test.java to *IT.java This way they are run during the correct phase
integration-test. The Failsafe Plugin takes care of that.We then have the possibility to start up our server mocks during
pre-integration-testphase and shut them down again duringpost-integration-test.Additionaly these tests are only executed during
mvn installormvn verify. The integration tests are not executed duringtestphase. This way we can speed up development cycles.