Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 290913 - [JUnit] Testsuites created by New Testsuite-Wizard have a fix name
Summary: [JUnit] Testsuites created by New Testsuite-Wizard have a fix name
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.6 M3   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 239433 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-30 10:07 EDT by Heiko Böttger CLA
Modified: 2009-10-07 08:02 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Böttger CLA 2009-09-30 10:07:25 EDT
User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Build Identifier: 

When creating a new TestSuite using the Wizard the generated suite-method creates a TestSuite with a fixed name:

TestSuite suite = new TestSuite("Test for fullyqualified.package.name");

It would be a nice feature when the testsuite were created by using the package name obtained through reflection:

TestSuite suite =  new TestSuite("Test for " + AllTests.class.getPackage().getName());

This way its junit-label is also changed when the suite is moved to another package.

Reproducible: Always
Comment 1 Markus Keller CLA 2009-10-07 07:59:56 EDT
Fixed in HEAD of NewTestSuiteWizardPage.

The suite name is now e.g. "AllTests.class.getName()" for suite name "AllTests".
Comment 2 Markus Keller CLA 2009-10-07 08:02:02 EDT
*** Bug 239433 has been marked as a duplicate of this bug. ***