i know how to run Junit test class:
mvn test -Dtest=classname
but when i tried to run a single unit test method as follows:
mvn test -Dtest=classname#methodname
i always get the error: that no test were executed
References:
http://maven.apache.org/plugins/maven-surefire-plugin/examples/single-test.html http://stackoverflow.com/questions/1873995/run-a-single-test-method-with-maven
please advise why my test method is not getting execusted, i am using maven 2 and junit 4.7 .