File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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?