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
if (classToTestName.length() == 0) {
			return status;
		}
		IStatus val= JavaConventions.validateJavaTypeName(classToTestName);
		if (val.getSeverity() == IStatus.ERROR) {
			status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_valid")); 
			return status;
		}
		
		if (root != null) {
			try {		
				IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(root.getJavaProject(), pack, classToTestName);
				
				if (type == null) {
					
					status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_exist")); 
					return status;
				} else {
					if (type.isInterface()) {
						status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.is_interface",classToTestName)); 
					}
					if (pack != null && !JavaModelUtil.isVisible(type, pack)) {
						status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.not_visible", new String[] {(type.isInterface())?Messages.getString("Interface"):Messages.getString("Class") , classToTestName})); 
					}
				}
				fClassToTest= type;
			} catch (JavaModelException e) {
				status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_valid")); 
			}							
		} else {