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 (fMethodStubsButtons.isSelected(3)) {
			createTearDown(type, imports);
		}
		
		if (isNextPageValid()) {
			createTestMethodStubs(type);
		}
	}
	protected void createConstructor(IType type) throws JavaModelException {
		String constr= "public "+getTypeName()+"(String name) {super(name);}\n\n"; 
		type.createMethod(constr, null, false, null);
		fIndexOfFirstTestMethod++;
	}
	protected void createMain(IType type) throws JavaModelException {
		StringBuffer main= new StringBuffer("public static void main(String[] args) {"); 
		if (fMethodStubsButtons.isSelected(1)) {
			main.append("junit."); 
			switch (fMethodStubsButtons.getComboSelection()) {
				case 0:
					main.append("textui"); 
					break;
				case 1:
					main.append("swingui"); 
					break;
				case 2 :
					main.append("awtui"); 
					break;
				default :
					main.append("textui"); 
					break;