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 203546 - Improve refactoring rename method to offer renaming test methods that contain the old method name
Summary: Improve refactoring rename method to offer renaming test methods that contain...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-11 18:18 UTC by mjr_1974
Modified: 2013-03-23 23:25 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 mjr_1974 2011-10-11 18:18:10 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Linux version 2.6.35-30-generic running on amd64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02

Let's suppose I have a class called ClassA with a method called 'methodOne'. That class has a test class called ClassATest with several methods annotated  with @Test like: 'methodOne_handleIllegalArguments', 'methodOneCreatesSomething', and so on... 
It would be great if when applying a refactoring rename to 'methodOne' to become 'methodTwo', the test methods were renamed accordingly to 'methodTwo_handleIllegalArguments', 'methodTowCreatesSomething', and so on... Maybe the test renames can be 100% automatic and a dialog should be displayed to allow the user to confirm each change.