Bug 19551 - Use JDT template to create testMethods [JUnit] [code manipulation]
Summary: Use JDT template to create testMethods [JUnit] [code manipulation]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-06-06 17:19 EDT by Eric Nickell CLA
Modified: 2009-08-30 02:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Nickell CLA 2002-06-06 17:19:37 EDT
The JUnit TestCase wizard optionally produces methods of the form:

public void testYourMethod() {}

This is very close to the behavior I would like.  I'd prefer:

public void test_yourMethod() {
  fail();
}


Can the wizard access a JDT template, e.g. template testMethod would have a
default value of "{}", but I could change my value to "{ fail(); }"
Comment 1 Erich Gamma CLA 2002-06-07 10:18:11 EDT
not critical for 2.0 -defer 
Comment 2 Eric Nickell CLA 2003-02-05 16:22:52 EST
Is there a feature request similar to this to use templates when the UI assists
in creating a new method?
Comment 3 Dirk Baeumer CLA 2003-02-06 04:30:14 EST
This could now be done with the new code templates introduced for M5. But 
requires code in JUnit. 
Comment 4 Dirk Baeumer CLA 2003-04-28 06:02:28 EDT
Chaning state from assigned later to resolved later. Assigned later got 
introduced by the last bug conversion and is not a supported Eclipse bug state.
Comment 5 Denis Roy CLA 2009-08-30 02:18:50 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.