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 240151

Summary: Insert code for test files
Product: java Reporter: gualtiero65
Component: JUnitAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description gualtiero65 2014-01-09 09:50:54 UTC
In a test file, it would be nice to have Insert Code functions to

- add a new test method template like
    @Test
    public void <cursor here>() {
           
    }
    Note: method body could be left empty

- add a @Before method (if not yet existing)
- add a @After method (if not yet existing) 
- add a @BeforeClass method (if not yet existing)
- add a @AfterClass method (if not yet existing) 

This is for jUnit.

Similar items for TestNG.
Comment 1 markiewb 2016-01-10 19:42:49 UTC
IMO: It's more a candidate to add new code templates