How to launch Unit tests in project

To explain this, i take gazelle-proxy-ejb as example.


Frist of all, you need to create a class which contains your tests in src/test/java.

In this class you must create methods which execute your tests with @Test above your methods.


After, you nedd to create a class named in which you add @SuiteClasses({ YourTestsClass.class }):

 To finish, you open pom.xml and add maven-surefire-plugin like this :


Your tests will be executed when you launch mvn clean package or mvn test