This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225870 - Allow templating generated test method javadocs
Summary: Allow templating generated test method javadocs
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 01:07 UTC by sworisbreathing
Modified: 2013-02-08 01:07 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sworisbreathing 2013-02-08 01:07:18 UTC
Currently, the default javadoc for a JUnit test method is defined in org/netbeans/modules/junit/Bundle.properties as:

TestCreator.variantMethods.JavaDoc.comment=Test of {0} method, of class {1}.

I prefer to have a slightly different javadoc for my test methods, but having the javadoc comment being stored in this resource bundle makes it difficult (if not impossible) to change how the comments are initially created, so I normally have to go through and edit them manually after they are created.

If the javadoc comments for test methods were part of the "Unit Tests" templates for JUnit, it would make editing and customizing the default javadoc much easier.