Skip to main content



      Home
Home » Newcomers » Newcomers » Modifying junit test method stub template
Modifying junit test method stub template [message #149934] Wed, 26 April 2006 16:34 Go to next message
Eclipse UserFriend
Can the template used to generate the test method stubs be modified? I
have searched through a couple of places that seem like good candidates to
no avail: the Code Templates preferences, and the JUnit preferences.
After unsuccessfully searching the web and some of the user forums I was
hoping someone else could help me out. Thank you.
Re: Modifying junit test method stub template [message #150038 is a reply to message #149934] Thu, 27 April 2006 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Is this what you're after?

Window > Preferences... then expand the tree to
Java - Editor - Templates and look under "test"

-paul
Re: Modifying junit test method stub template [message #150062 is a reply to message #150038] Thu, 27 April 2006 16:04 Go to previous message
Eclipse UserFriend
Thanks for the response. This is _very_ close to what I need, but I am
specifically looking for a JUnit test method stub template. The template
you referenced does not appear to affect the auto-generated JUnit test
method stub templates. In other words in the New JUnit Test Case dialog
one can select the methods of the class under test and test methods stubs
are auto-generated. I would like to modify the template that creates
these JUnit test method stubs.
Previous Topic:generating reports in landscape format
Next Topic:Posting to eclipse.technology.wsvt
Goto Forum:
  


Current Time: Wed Apr 30 14:54:12 EDT 2025

Powered by FUDForum. Page generated in 0.13187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top