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

Bug 346007

Summary: [JUnit] ITestSuiteElement.getSuiteTypeName() returns name of suite, rather than type name
Product: [Eclipse Project] JDT Reporter: Evan Hughes <evan_hughes>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r, Olivier_Thomann
Version: 3.6Keywords: Documentation
Target Milestone: 3.7 RC2   
Hardware: PC   
OS: Linux   
Whiteboard:

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.