Best practices for integration tests with Maven?

A very simple way of doing this is to use JUnit categories.

You can then easily run some tests during the test phase and another during the integration-test phase.

It takes minutes and requires only 3 steps.

  1. Define a marker interface
  2. Annotate the classes you wish to split
  3. Configure Maven plugins.

A full example is given here.
https://stackoverflow.com/a/10381662/1365383

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)