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 (!currentAdded) {
							overloadedMethods.add(current);
							currentAdded= true;
						}
						overloadedMethods.add(iterMethod);
						iter.remove();
					}
				}
			}
			
			/* used when for example both sum and Sum methods are present. Then
			 * sum -> testSum
			 * Sum -> testSum1
			 */
			ArrayList newMethodsNames= new ArrayList();				
			for (int i = 0; i < methods.length; i++) {
				String elementName= methods[i].getElementName();
				StringBuffer methodName= new StringBuffer(NewTestCaseCreationWizardPage2.PREFIX+Character.toUpperCase(elementName.charAt(0))+elementName.substring(1));
				StringBuffer newMethod= new StringBuffer();
	
				if (overloadedMethods.contains(methods[i])) {
					IMethod method= methods[i];
					newMethod.append("/*\n * Test for "+Signature.toString(method.getReturnType())+" "+method.getElementName()+"("); 
					String[] paramTypes= method.getParameterTypes();
					if (paramTypes.length > 0) {
						if (paramTypes.length > 1) {
							for (int j= 0; j < paramTypes.length-1; j++) {
								newMethod.append(Signature.toString(paramTypes[j])+", "); 
							}
						}