Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running a signle junit method in maven

 
Praveen Seluka
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic