Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366514 - [JUnit] Recreate JUnit 3.x style AllTests-class fails if annotated with RunWith
Summary: [JUnit] Recreate JUnit 3.x style AllTests-class fails if annotated with RunWith
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 06:08 EST by Heiko Böttger CLA
Modified: 2019-10-30 12:34 EDT (History)
1 user (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 2011-12-13 06:08:21 EST
Build Identifier: 20110916-0149

When trying to recreate a JUnot 3.x AllTests suite with a RunWith-Annoation the ui reports the following error:

"The SuiteClasses() Annotation cannot be found"

Since this is an old style testsuite there cannot be a SuiteClasses-Annotation.


Reproducible: Always

Steps to Reproduce:
1. Create some dummy TestCases FirstTest, SecondTest and ThiredTest
2. Create a TestSuite with the RunWith-Annotation


@RunWith(org.junit.runners.AllTests.class)
public class AllTests {
  
  public static Test suite() {
    TestSuite suite = new TestSuite(AllTests.class.getName());
    //$JUnit-BEGIN$
    suite.addTestSuite(FirstTest.class);
    suite.addTestSuite(SecondTest.class);
    suite.addTestSuite(ThirdTest.class);
      //$JUnit-END$
    return suite;
  }
  
}

3. Try to invoke the recreate testsuite action
Comment 1 Eclipse Genie CLA 2019-10-30 12:34:36 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.