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 191372 - Make it more obvious that 'Create JUnit Tests' will update existing tests
Summary: Make it more obvious that 'Create JUnit Tests' will update existing tests
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: PLAN
: 191746 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-10-26 16:03 UTC by tomwheeler
Modified: 2013-10-11 17:41 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 tomwheeler 2010-10-26 16:03:40 UTC

    
Comment 1 tomwheeler 2010-10-26 16:10:46 UTC
A colleague of mine has just started writing unit tests in Java with NetBeans.  He knew about pressing Ctrl-U to generate unit tests for a class, but asked how he could update the unit tests to account for new methods he had added to the class under test.  I told him that I did not think the IDE supported it, so I always did this manually.  

I was going to file an RFE for this, but decided to see what happens when you add a new method to a class which already has a unit test class and press Ctrl-U.  To my surprise, this action updated the existing test class and added prototype for the new method!

Given that I have used the IDE for five years, write lots of tests and didn't know about this feature, I suspect few others do either.  I therefore request that you make this behavior more obvious; this could be as simple as changing the item on the tools menu from 'Create JUnit Test' to  'Create/Update JUnit Test'.
Comment 2 culli 2012-02-03 15:52:37 UTC
Also see 165343.
Comment 3 Theofanis Oikonomou 2013-09-04 14:11:03 UTC
Updating the menu's description seems the right thing to do.
Comment 4 Theofanis Oikonomou 2013-09-04 15:19:37 UTC
*** Bug 191746 has been marked as a duplicate of this bug. ***
Comment 5 Theofanis Oikonomou 2013-10-11 17:41:20 UTC
Fixed: http://hg.netbeans.org/core-main/rev/df2c841ad154