*
The moose likes Ant, Maven and Other Build Tools and the fly likes running a signle junit method in maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "running a signle junit method in maven" Watch "running a signle junit method in maven" New topic
Author

running a signle junit method in maven

Praveen Seluka
Ranch Hand

Joined: Jul 17, 2007
Posts: 95
Hi all

mvn -Dtest=<classname>test.java test
this will run the junit test case for all the methods in that test java file.
I want to restrict it to only certain methods.
Can we specify run this method in this junit test class.

please help

Praveen SP
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: running a signle junit method in maven
 
Similar Threads
PowerMock Test mechanism error
How to write JUnit for Void method
Controlling JUnit test method execution
Multiple tests in JUnit
How should I test GUIs using Eclipse?