I\'ve inherited a load of Junit test, but these tests (apart from most not working) are a mixture of actual unit test and integration tests (requiring external systems, db e
We use Maven Surefire Plugin to run unit tests and Maven Failsafe Plugin to run integration tests. Unit tests follow the **/Test*.java **/*Test.java **/*TestCase.java
naming conventions, integration tests - **/IT*.java **/*IT.java **/*ITCase.java
. So it's actually your option number three.
In a couple of projects we use TestNG and define different test groups for integration/unit tests, but this is probably not suitable for you.