Bug 114300 - [JUnit] Remember superclass in JUnit Test Case wizard
Summary: [JUnit] Remember superclass in JUnit Test Case wizard
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-29 13:15 EDT by J. B. Rainsberger CLA
Modified: 2006-06-23 09:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J. B. Rainsberger CLA 2005-10-29 13:15:51 EDT
I would like to be able to configure the superclass that the "New JUnit Test
Case" wizard chooses (by default) when I create a new JUnit test.
Comment 1 Ilja Preuss CLA 2006-01-19 10:03:06 EST
Ditto here!
Comment 2 Martin Aeschlimann CLA 2006-01-20 06:17:02 EST
What we could do is to use the current selection if it extends TestCase. Is that good enough?

The problem of initializing a field is always that it is also nasty for the user when its wrong.
Comment 3 Ilja Preuss CLA 2006-01-20 06:30:28 EST
(In reply to comment #2)
> What we could do is to use the current selection if it extends TestCase. Is
> that good enough?
> The problem of initializing a field is always that it is also nasty for the
> user when its wrong.

At work, we have our own root TestCase class that adds a number of commonly used assert methods. We want to use that one in 99% of all cases.

So, no, for us using the current selection wouldn't work - initializing the field with a value defined once is exactly what we want.

What would also work is if the field remembered its last value, perhaps even with a history.

(This might become less relevant with JUnit 4, I guess...)