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

Bug 26257

Summary: JUnit: New Test Case wizard generates code which does not compile
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2002-11-14 05:59:57 EST
Build 20021113

This might be intentional: when I choose to generate the main class then the
generate code contains a compile error:

	public static void main(String[] args) {
		junit.textui.TestRunner.run(TestCaseTest.suite());
	}

TestCaseTest.suite() does not exist.
Comment 1 Erich Gamma CLA 2002-11-16 18:37:48 EST
the code should be 

junit.textui.TestRunner.run(TestCaseTest.class);