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
CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
			GenStubSettings genStubSettings= new GenStubSettings(settings);				
			genStubSettings.fCallSuper= true;
			genStubSettings.fMethodOverwrites= true;
			tearDown= JUnitStubUtility.genStub(getTypeName(), methodTemplate, genStubSettings, imports);
		} else {
			tearDown="/**\n * Tears down the fixture, for example, close a network connection.\n * This method is called after a test is executed.\n * @throws Exception\n */\n" + 
				"protected void "+TEARDOWN+"() throws Exception {}\n\n"; 
		}				
		type.createMethod(tearDown, null, false, null);	
		fIndexOfFirstTestMethod++;
	}
	protected void createTestMethodStubs(IType type) throws JavaModelException {
		IMethod[] methods= fPage2.getCheckedMethods();
		if (methods.length > 0) {
			
			ArrayList allMethods= new ArrayList();
			IMethod[] allMethodsArray= fPage2.getAllMethods();
			for (int i= 0; i < allMethodsArray.length; i++) {
				allMethods.add(allMethodsArray[i]);
			}
			ArrayList overloadedMethods= new ArrayList();
			for (int i= 0; i < allMethods.size(); i++) {
				IMethod current= (IMethod) allMethods.get(i);
				String currentName= current.getElementName();
				boolean currentAdded= false;
				for (ListIterator iter= allMethods.listIterator(i+1); iter.hasNext(); ) {
					IMethod iterMethod= (IMethod) iter.next();
					if (iterMethod.getElementName().equals(currentName)) {