Bug 105817 - [JUnit] TestCaseWizard: Populate Test Case Name from Class under Test
Summary: [JUnit] TestCaseWizard: Populate Test Case Name from Class under Test
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P4 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 12:19 EDT by Jerry Vos CLA
Modified: 2010-07-25 19:46 EDT (History)
3 users (show)

See Also:


Attachments
105817.patch (1.99 KB, patch)
2010-07-25 19:46 EDT, Ralf Ebert CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jerry Vos CLA 2005-08-02 12:19:56 EDT
It would be nice if a default name would be specified in the Name field of the
New JUnit Test Case wizard when you choose a "Class under test".

This default would only be filled in if the Name field was not specified before
you choose a class to test.

Example behavior:
1) Start the "New JUnit Test Case" wizard
2) Hit Browse at the Class under test
3) Choose foo.bar.ClassXYZ
4) Choose OK
5) The Class under Test field becomes foo.bar.classXYZ and the Name of the class
becomes one of: {ClassXYZTest, ClassXYZTestCase, ...}

It would be nice if the deafult test name too was customizable, so you could
specify "arbText${ClassName}arbText" as your class name.
Comment 1 Johan Walles CLA 2010-01-31 07:48:29 EST
This is a duplicate of bug 28723.

Adding my vote here though, since the other one is WONTFIX for unclear reasons and I can't re-open it.
Comment 2 Markus Keller CLA 2010-02-04 13:25:23 EST
> This is a duplicate of bug 28723.

Nope, this bug requests:

1. Initialize test class name after selecting a class under test
=> We can do that if someone supplies a patch

2. Customizable default test name
=> This is a dup of bug 28723, and we won't add yet another preference for that
Comment 3 Ralf Ebert CLA 2010-07-25 19:46:01 EDT
Created attachment 175192 [details]
105817.patch