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

Summary: Improve refactoring rename method to offer renaming test methods that contain the old method name
Product: java Reporter: mjr_1974 <mjr_1974>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: NEW ---    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.0.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.