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.
per Bug 79352 : Please describe/specify the skeletons you want to be generated: JUnit support should allow customized method declaration generation. Current: all tests begin with: @Test public void testGetCode() { System.out.println("getCode"); ...} Enhancement: Allow custom method declaration generation. For example, it is cleaner/easier to use a @Rule public TestName testName = new TestName(); @Before public void printName() { System.out.println(testName.getMethodName()); ...} @Test public void testGetCode() { // name of test printed automatically during printName() so this line is not generated ...} and this behavior should be configurable by the user. This could be done with a template. Example, the current one might look like: @Test public void test${MethodUnderTestName}(){ System.out.println("${MethodUnderTestName}"); ... }