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 - Insert code for test files
Summary: Insert code for test files
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 09:50 UTC by gualtiero65
Modified: 2016-01-10 19:42 UTC (History)
1 user (show)

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 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