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

Summary: Allow templating generated test method javadocs
Product: java Reporter: sworisbreathing <sworisbreathing>
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.