Maven - Java class naming convention for unit testing

less than 1 minute read

Unit test Java classes should follow the following naming convention otherwise Maven can not find any unit testing class

Test*
*Test
*TestCase

If you don't like to follow the above convention, you can configure Maven Surefire Plugin to use other patterns.

http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html