Bug 53352 Test case wizard generates wrong code
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
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/NewTestSuiteCreationWizardPage.java
cu.reconcile();  
						originalContent= buf.getText(0, buf.getLength());
						monitor.worked(1);
						String formattedContent=
							JUnitStubUtility.codeFormat(originalContent, 0, lineDelimiter);
						buf.replace(0, buf.getLength(), formattedContent);
						monitor.worked(1);
						cu.save(new SubProgressMonitor(monitor, 1), false);
					} else {
						cannotUpdateSuiteError();
					}
				} else {
					cannotUpdateSuiteError();
				}
			} else {
				MessageDialog.openError(getShell(), WizardMessages.getString("NewTestSuiteWizPage.createType.updateErrorDialog.title"), WizardMessages.getString("NewTestSuiteWizPage.createType.updateErrorDialog.message")); 
			}
		} else {
			suiteType.createMethod(getSuiteMethodString(), null, true, monitor);
			ISourceRange range= cu.getSourceRange();
			IBuffer buf= cu.getBuffer();
			String originalContent= buf.getText(range.getOffset(), range.getLength());
			monitor.worked(2);
			String formattedContent=
				JUnitStubUtility.codeFormat(originalContent, 0, lineDelimiter);
			buf.replace(range.getOffset(), range.getLength(), formattedContent);
			monitor.worked(1);
			cu.save(new SubProgressMonitor(monitor, 1), false);
		}
		monitor.done();