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

Summary: Method name refactoring does not rename the correct test method
Product: java Reporter: Michel Graciano <hmichel>
Component: TestNGAssignee: Theofanis Oikonomou <theofanis>
Status: RESOLVED FIXED    
Severity: normal CC: jungi, ralphbenjamin
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Sample project

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