Project: JDT
Bug 53352 Test case wizard generates wrong code
Reported: 2004-02-28 16:36:56 | Status: verified fixed

When clicking on a class and then doing new -> junit test case the code generated includes this: public static void main(String[] args) { junit.textui.TestRunner.run(QueryAnalizerTest.suite()); } the suite() methods is not found in generated class. I fix if by changing to junit.textui.TestRunner.run(QueryAnalizerTest.class); but I don't use to run is as an app, so maybe the fix action shuold be different

Files changed in fix:
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestSuiteCreationWizardPage.java