Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 25789

Summary: Eclipse Testrunner doesn't recognize inner Test classes
Product: [Eclipse Project] JDT Reporter: Fran Tonello <ftonello>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Fran Tonello CLA 2002-11-06 13:33:08 EST
Eclipse should recognize JUnit Tests that are inner classes, like JBuilder 
does.  -There are many advantages to using inner classes for JUnit Tests, such 
as having access to the private members of the class it's testing.
Comment 1 Fran Tonello CLA 2002-11-06 14:48:25 EST
Move to JDT product/UI component.
Comment 2 Dani Megert CLA 2002-11-07 04:15:54 EST
Erich, please comment.
Comment 3 Erich Gamma CLA 2002-11-07 13:13:15 EST
should be fixed in the 2.1 stream pls verify
Comment 4 Fran Tonello CLA 2002-11-08 23:30:54 EST
Verified.  Thanks!

One detail, though.  To be consistent, it would be nice if the Outline view 
showed the little JUnit logo next to classes containing an inner Test class, 
like it shows the little "runner" logo for classes that define a main() method.
Comment 5 Fran Tonello CLA 2002-11-09 00:32:56 EST
P.S. Resolution intentionally left unchanged, pending comment from Erich 
regarding lack of logo in Outline view.
Comment 6 Erich Gamma CLA 2002-11-11 05:12:51 EST
agreed, that it is not fully consistent to show only the running man for Java 
applications. Since there are other launchable elements that could be 
emphasized with a decoration, e.g., applets, junit test cases, servlets etc.).

support for generalized launch decorations is not planned for 2.1.
Filing a separte reminder bug 25963
Comment 7 Fran Tonello CLA 2002-11-11 12:48:36 EST
Perfect!  Thanks, Erich.