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.
At this time it is not possible to edit the default text that is entered as part of a method body in an automatically generated JUnit 4 @Test. It would be incredibly useful to be able to customise this. Also, it would be very helpful if the JUnit generator provided options to create the @BeforeClass and @AfterClass methods... I do not tend to use them and it is irritating to have to delete them after creating each test unit.
Reassigning to "junit".
This might be possible with the FreeMarker template system. I will not have time to make it to NB 6.5. Because no real milestones for post-6.5 releases are present yet and because there is no plan for post-6.5 release, I set the target milestone to "future".
The problem with creating the @BeforeClass and @AfterClass is also tracked as issue #121540.
The question is where to show an editor for default test method body. Should it be "Create Tests" dialog (every time) or some Options (once for every project)
The reason why I want to be able to edit the default body is because it tries to be too smart by creating some fake test. This is silly and useless IMHO. It'd be much more helpful if the default body were something simple like fail("test not written");
Please somebody in junit consider looking at this!