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 (type.isInterface()) {
						status.setError(Messages.getString("NewTestClassWizPage.error.superclass.is_interface")); 
						fSuperClassStatus= status;
					}
					if (!TestSearchEngine.isTestImplementor(type)) {
						status.setError(Messages.getFormattedString("NewTestClassWizPage.error.superclass.not_implementing_test_interface", JUnitPlugin.TEST_INTERFACE_NAME)); 
						fSuperClassStatus= status;
					} else {
						IMethod setupMethod= type.getMethod(SETUP, new String[] {});
						IMethod teardownMethod= type.getMethod(TEARDOWN, new String[] {});
						if (setupMethod.exists())
							fMethodStubsButtons.setEnabled(2, !Flags.isFinal(setupMethod.getFlags()));
						if (teardownMethod.exists())
							fMethodStubsButtons.setEnabled(3, !Flags.isFinal(teardownMethod.getFlags()));
					}
				}
			} catch (JavaModelException e) {
				JUnitPlugin.log(e);
			}
		}
	}
	
	protected void createTestClassControls(Composite composite, int nColumns) {
		fTestClassLabel= new Label(composite, SWT.LEFT | SWT.WRAP);
		fTestClassLabel.setFont(composite.getFont());
		fTestClassLabel.setText(Messages.getString("NewTestClassWizPage.testcase.label")); 
		GridData gd= new GridData();
		gd.horizontalSpan= 1;
		fTestClassLabel.setLayoutData(gd);
		fTestClassText= new Text(composite, SWT.SINGLE | SWT.BORDER);