aspose 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 Java 8 in Action this week in the Java 8 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
Controlling JUnit test method execution
PowerMock Test mechanism error
Multiple tests in JUnit
How should I test GUIs using Eclipse?
How to write JUnit for Void method