Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320715 - [JUnit] Renaming unit test class when renaming the class who’s tested
Summary: [JUnit] Renaming unit test class when renaming the class who’s tested
Status: CLOSED DUPLICATE of bug 44178
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 09:15 EDT by Stijn Vanpoucke CLA
Modified: 2010-07-28 06:54 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stijn Vanpoucke CLA 2010-07-23 09:15:24 EDT
Build Identifier: 20100617-1415

I often use the refactor -> rename... functionality in eclipse, I also have the habit to name my unit test TestedClassNameTest. But when I rename my tested class I must never forget to rename my unitTest, it would be extremely useful to rename my unit test class automaticly when the tested class is renamed.

There's pitty enough no relation in the eclipse model between the junit class and the class who's tested. 

Reproducible: Always

Steps to Reproduce:
1. Click on the class name
2. Press ctrl+shift+r
3. Edit the name of the class.
4. Press enter

Result:
Everything related to that class has been renamed even the JavaDoc, in exception to the class name of the related unit test.

Expected Result:
The name of the unit test who is related to that class is also renamed.
Comment 1 Ankur Sharma CLA 2010-07-23 15:56:44 EDT
Over to JDT
Comment 2 Dani Megert CLA 2010-07-28 06:52:04 EDT

*** This bug has been marked as a duplicate of bug 37937 ***
Comment 3 Dani Megert CLA 2010-07-28 06:54:21 EDT

*** This bug has been marked as a duplicate of bug 44178 ***