Run mvn dependency:resolve
Exclude any 3.x version of JUnit that may have crept in.
Make sure there are no TestNG dependencies, if there are it will load TestNG annotations and not the JUnit ones you need.
Run mvn dependency:resolve
Exclude any 3.x version of JUnit that may have crept in.
Make sure there are no TestNG dependencies, if there are it will load TestNG annotations and not the JUnit ones you need.