Bug 346007 - [JUnit] ITestSuiteElement.getSuiteTypeName() returns name of suite, rather than type name
Summary: [JUnit] ITestSuiteElement.getSuiteTypeName() returns name of suite, rather th...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.7 RC2   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2011-05-16 17:33 EDT by Evan Hughes CLA
Modified: 2011-05-18 11:04 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Hughes CLA 2011-05-16 17:33:31 EDT
Build Identifier: 

Calling ITestSuiteElement.getSuiteTypeName() on a test suite returns the string passed into junit.framework.TestSuite.TestSuite(String), rather than the name of the type. 

Reproducible: Always
Comment 1 Olivier Thomann CLA 2011-05-16 20:13:04 EDT
Move to JDT/UI
Comment 2 Markus Keller CLA 2011-05-17 08:12:32 EDT
You're right, this API has a bit a misleading name. It often returns the suite class name, but this is is not the case when a custom name has been set. I've adjusted the Javadoc in HEAD.

Note that the class name is e.g. not available when the test has been loaded from an XML file.
Comment 3 Dani Megert CLA 2011-05-18 11:04:19 EDT
Verified that the change is in I20110518-0800.