Bug 178483

Summary: [JUnit] Warnings on the "New JUnit Test Case" dialog are not obvious enough
Product: [Eclipse Project] JDT Reporter: Wayne Beaton <wayne.beaton>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
New JUnit Test Case dialog
none
Another example none

Description Wayne Beaton CLA 2007-03-20 23:56:38 EDT
Perhaps it's just my little brain, but...

On the "New JUnit Test Case" dialog, warnings are displayed at the bottom of the dialog and I tend to miss (i.e. not see) them.

For example, the warning that "JUnit 4 requires a Java 5 project" is pretty easy to miss (I'll attach a screenshot).

Shouldn't these warnings be indicated at the top of the dialog?
Comment 1 Wayne Beaton CLA 2007-03-20 23:58:09 EDT
Created attachment 61501 [details]
New JUnit Test Case dialog

In this screenshot, the warning that the JRE version is incorrect is shown at the bottom. I don't always see this warning.
Comment 2 Wayne Beaton CLA 2007-03-21 00:01:06 EDT
Created attachment 61502 [details]
Another example

Again, the warning that JUnit is not on the classpath is not obvious. The warning at the top that the "Superclass does not exist." leads me to look around for a solution, but it would be more helpful if the warning shown below replaced what is shown at the top.

I'm also not sure that I'm comfortable with the use of a hyperlink in this particular case, but I think that's a whole different discussion.
Comment 3 Martin Aeschlimann CLA 2007-03-21 07:59:20 EDT
Agreed, we should go back to the old solution with the dialog before the wizard. But to do this correctly we should allow other plugins to hook in so PDE can suggest to add a dependency to the org.junit plug-in.