Bug 53500 - New Test Case wizard broken
Summary: New Test Case wizard broken
Status: RESOLVED DUPLICATE of bug 53095
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-02 11:41 EST by Markus Keller CLA
Modified: 2004-03-12 04:02 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-03-02 11:41:31 EST
I20040302

- Select a test project in the Package Explorer
- context menu > New > Test Case
- (if asked: accept to add junit to the build path)
- Enter a name

-> Error message:
"Superclass does not implement the 'junit.framework.Test' interface.", even
though the superclass junit.framework.TestCase does implement Test.

The problem is apparent in TestSearchEngine.isTestImplementor(IType type)
(project org.eclipse.jdt.junit):
'type' is the (binary) type junit.framework.TestCase, and ...
	ITypeHierarchy typeHier= type.newSupertypeHierarchy(null);
	IType[] superInterfaces= typeHier.getAllInterfaces();
... results in an empty array of superInterfaces. It was not empty in M6.
Comment 1 Markus Keller CLA 2004-03-02 11:46:02 EST
Moving to jdt-core:
As I understand it, ITypeHierarchy#getAllInterfaces() should include
junit.framework.Test when the supertype hierarchy was created on
junit.framework.TestCase.
Comment 2 Markus Keller CLA 2004-03-12 04:02:23 EST

*** This bug has been marked as a duplicate of 53095 ***