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 (fieldName.equals(CLASS_TO_TEST)) {
			fClassToTestStatus= classToTestClassChanged();
			updateDefaultName();
		} else if (fieldName.equals(SUPER)) {
			validateSuperClass();
		} else if (fieldName.equals(TEST_CLASS)) {
			fTestClassStatus= testClassChanged();
		} else if (fieldName.equals(PACKAGE) || fieldName.equals(CONTAINER)) {
			if (fieldName.equals(PACKAGE))
				fPackageStatus= packageChanged();
			if (!fFirstTime) {
				validateSuperClass();
				fClassToTestStatus= classToTestClassChanged();			
				fTestClassStatus= testClassChanged();
			}
		}
		doStatusUpdate();
	}
	
	private void doStatusUpdate() {
		
		IStatus[] status= new IStatus[] {
			fContainerStatus,
			fPackageStatus,
			fTestClassStatus,
			fClassToTestStatus,
			fModifierStatus,
			fSuperClassStatus
		};