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.
Would be nice if a rename refactoring for Foo.m1() -> Foo.m2() also offered to rename FooTest.testM1() -> FooTest.testM2() if it existed. Would mean a dep junit -> refactoring, I guess.
*** This issue has been marked as a duplicate of 52960 ***
Bug 52960 was fixed but this is still valid.
*** Bug 225936 has been marked as a duplicate of this bug. ***
The test method name can also exactly match the renamed test (usually with the @Test annotation). It is annoying to hunt for the test method each time I rename a method. Think, for example, when you rename a method in an interface! The impact could be in many tests! For the IDE help keeping test and base code in sync should be a must!
Changeset: f170236ded95 Author: Theofanis Oikonomou <theofanis@netbeans.org> Date: 2013-02-15 15:37 Message: Issue #62897 - Rename test after renaming method
Integrated into 'main-golden', will be available in build *201302162300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f170236ded95 User: Theofanis Oikonomou <theofanis@netbeans.org> Log: Issue #62897 - Rename test after renaming method