Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Modifying junit test method stub template
Modifying junit test method stub template [message #149934] Wed, 26 April 2006 20:34 Go to next message
Guillermo Federico is currently offline Guillermo FedericoFriend
Messages: 21
Registered: July 2009
Junior Member
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 18:32 Go to previous messageGo to next message
Paul Moore is currently offline Paul MooreFriend
Messages: 13
Registered: July 2009
Junior Member
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 20:04 Go to previous message
Guillermo Federico is currently offline Guillermo FedericoFriend
Messages: 21
Registered: July 2009
Junior Member
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: Tue Jul 16 10:07:34 GMT 2024

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

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

Back to the top