I have a Java Project in which I am writing a simple JUNIT test case. I have copied the applicatinoContext.xml file into the root java source directory. I\'ve tried it wit
I had the same problem, and I was using the following plugin for tests:
org.apache.maven.plugins
maven-surefire-plugin
2.9
true
**/*Tests.java
**/*Test.java
**/Abstract*.java
junit:junit
methods
10
The test were running fine in the IDE (eclipse sts), but failed when using command mvn test.
After a lot of trial and error, I figured the solution was to remove parallel testing, the following two lines from the plugin configuration above:
methods
10
Hope that this helps someone out!