Bug 21432 - JUnit TestCase wizard: add a checkbox for 'suite' method creation [JUnit]
Summary: JUnit TestCase wizard: add a checkbox for 'suite' method creation [JUnit]
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-07-10 04:31 EDT by Giovanni Corriga CLA
Modified: 2003-02-06 12:24 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 Giovanni Corriga CLA 2002-07-10 04:31:41 EDT
The TestCase wizard should have a checkbox to allow creation of the static
method 'junit.framework.Test suite()'.

The generated code could be something like:

import junit.framework.TestCase;
import junit.framework.TestSuite;

class MyClassTest extends TestCase
{
  //snip...

  public static junit.framework.Test suite()
  {
    return new TestSuite(MyClassTest.class);
  }
}
Comment 1 Erich Gamma CLA 2002-10-20 05:11:15 EDT
Not clear why this is needed. TestRunners create the TestSuite for you and you 
can create a TestSuite with new TestSuite(MyClassTest.class);
Comment 2 Dirk Baeumer CLA 2003-02-06 12:24:04 EST
As Erich pointed out there are options to create a TestSuite. No feedback from 
reporter. Closing...