Bug 11851 generated new TestCase differes form generated new class
It would be nice if the generation of a new test case would do the same as generation of a new class. The thing which I noticed: new Class wizards adds javadoc while new Test Case wizard does not. /** * Constructor for AA. * @param name */ public AA(String name) { super(name); }
org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java
IType createdType= getCreatedType();
		fTestMethods= createdType.getMethods();
		ICompilationUnit cu= createdType.getCompilationUnit();
		cu.save(null, false);
		IResource res= createdType.getCompilationUnit().getUnderlyingResource();
		for (int i= getIndexOfFirstMethod(); i < fTestMethods.length; i++) {
			IMethod method= fTestMethods[i];
			IMarker marker= res.createMarker("org.eclipse.jdt.junit.junit_task"); 
			HashMap attributes= new HashMap(10);
			attributes.put(IMarker.PRIORITY, new Integer(IMarker.PRIORITY_NORMAL));
			attributes.put(IMarker.MESSAGE, Messages.getFormattedString("NewTestClassWizPage.marker.message",method.getElementName())); 
			ISourceRange markerRange= method.getSourceRange();
			attributes.put(IMarker.CHAR_START, new Integer(markerRange.getOffset()));
			attributes.put(IMarker.CHAR_END, new Integer(markerRange.getOffset()+markerRange.getLength()));
			marker.setAttributes(attributes);
		}
	}
	
	private void validateSuperClass() {
		fMethodStubsButtons.setEnabled(2, true);
		fMethodStubsButtons.setEnabled(3, true);
		String superClassName= getSuperClass();
		if (superClassName != null && !superClassName.equals("") && getPackageFragmentRoot() != null) { 
			try {
				IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(getPackageFragmentRoot().getJavaProject(), getPackageFragment(), superClassName);
				JUnitStatus status = new JUnitStatus();				
				if (type == null) {
					status.setError(Messages.getString("NewTestClassWizPage.error.superclass.not_exist")); 
					fSuperClassStatus= status;
				} else {