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
fTestClassText.setEnabled(true);
		fTestClassText.setFont(composite.getFont());
		fTestClassText.addModifyListener(new ModifyListener() {
			public void modifyText(ModifyEvent e) {
				handleFieldChanged(TEST_CLASS);
			}
		});
		gd= new GridData();
		gd.horizontalAlignment= gd.FILL;
		gd.grabExcessHorizontalSpace= true;
		gd.horizontalSpan= nColumns - 2;
		fTestClassText.setLayoutData(gd);
		
		Label space= new Label(composite, SWT.LEFT);
		space.setText(" "); 
		gd= new GridData();
		gd.horizontalSpan= 1;
		space.setLayoutData(gd);
	}
	/**
	 * Gets the type name.
	 */
	public String getTypeName() {
		return (fTestClassText==null)?fTestClassTextInitialValue:fTestClassText.getText();
	}
	
	/**
	 * Sets the type name.
	 */	
	public void setTypeName(String name, boolean canBeModified) {