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
return;
		}
		
		if (! UpdateTestSuite.checkValidateEditStatus(cu, getShell()))
			return;
		IType suiteType= cu.getType(getTypeName());
		monitor.beginTask(WizardMessages.getString("NewTestSuiteWizPage.createType.beginTask"), 10); 
		IMethod suiteMethod= suiteType.getMethod("suite", new String[] {}); 
		monitor.worked(1);
		
		String lineDelimiter= JUnitStubUtility.getLineDelimiterUsed(cu);
		if (suiteMethod.exists()) {
			ISourceRange range= suiteMethod.getSourceRange();
			if (range != null) {
				IBuffer buf= cu.getBuffer();
				String originalContent= buf.getText(range.getOffset(), range.getLength());
				StringBuffer source= new StringBuffer(originalContent);
				
				
				int start= source.toString().indexOf(START_MARKER);
				if (start > -1) {
					
					
					int end= source.toString().indexOf(END_MARKER, start);
					if (end > -1) {
						monitor.subTask(WizardMessages.getString("NewTestSuiteWizPage.createType.updating.suite_method")); 
						monitor.worked(1);
						end += END_MARKER.length();
						source.replace(start, end, getUpdatableString());
						buf.replace(range.getOffset(), range.getLength(), source.toString());