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
fDefaultClassToTest= ""; 
	}
	
	/**
	 * Should be called from the wizard with the input element.
	 */
	public void init(IStructuredSelection selection, NewTestCaseCreationWizardPage2 page2) {
		fPage2= page2;
		IJavaElement element= getInitialJavaElement(selection);
		initContainerPage(element);
		initTypePage(element);
		doStatusUpdate();		
				
		if (element != null) {
			IType classToTest= null;
			
			IPackageFragment pack= (IPackageFragment) JavaModelUtil.findElementOfKind(element, IJavaElement.PACKAGE_FRAGMENT);
			IType typeInCompUnit= (IType) JavaModelUtil.findElementOfKind(element, IJavaElement.TYPE);
			if (typeInCompUnit != null) {
				if (typeInCompUnit.getCompilationUnit() != null) {
					classToTest= typeInCompUnit;
				}
			} else {
				ICompilationUnit cu= (ICompilationUnit) JavaModelUtil.findElementOfKind(element, IJavaElement.COMPILATION_UNIT);
				if (cu != null) 
					classToTest= JavaModelUtil.findPrimaryType(cu);
				else {
					if (element instanceof IClassFile) {
						try {
							IClassFile cf= (IClassFile) element;