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
status.setError(""); 
		}
		return status;
	}
	static public IType resolveClassNameToType(IJavaProject jproject, IPackageFragment pack, String classToTestName) throws JavaModelException {
		IType type= null;
		if (type == null && pack != null) {
			String packName= pack.getElementName();
			
			if (!pack.isDefaultPackage()) {
				type= JavaModelUtil.findType(jproject, packName, classToTestName);
			}
			
			if (type == null && !"java.lang".equals(packName)) { 
				type= JavaModelUtil.findType(jproject, "java.lang", classToTestName); 
			}
		}
		
		if (type == null) {
			type= JavaModelUtil.findType(jproject, classToTestName);
		}
		return type;
	}
	/**
	 * Sets the focus on the type name.
	 */		
	protected void setFocus() {
		fTestClassText.setFocus();
	}