Bug 105817

Summary: [JUnit] TestCaseWizard: Populate Test Case Name from Class under Test
Product: [Eclipse Project] JDT Reporter: Jerry Vos <jerry.vos>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P4 CC: johan.walles, markus.kell.r, ralf
Version: 3.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
105817.patch none

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