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 243970 - Method name refactoring does not rename the correct test method
Summary: Method name refactoring does not rename the correct test method
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: TestNG (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-21 18:05 UTC by Michel Graciano
Modified: 2014-07-19 10:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (2.24 KB, application/zip)
2014-04-21 18:05 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2014-04-21 18:05:05 UTC
Created attachment 146862 [details]
Sample project

Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.11.0-19-generic running on amd64; UTF-8; en_US (nb)

-----

To reproduce the issue, just unpack the attached project and rename the method getValue to getValueX. The result will be that the dataprovider method is remaned instead of test method. IMO the method annotated with @Test should be renamed instead of @DataProvider one.
Comment 1 Theofanis Oikonomou 2014-07-16 15:40:46 UTC
Changeset: e9739cc91474
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2014-07-16 17:43
Message:
Comment 2 Quality Engineering 2014-07-19 10:17:54 UTC
Integrated into 'main-silver', will be available in build *201407190718* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e9739cc91474
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #243970 - Method name refactoring does not rename the correct test method