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
status.setWarning(Messages.getString("NewTestClassWizPage.error.testcase.name_discouraged")+val.getMessage()); 
			
		}		
		IPackageFragment pack= getPackageFragment();
		if (pack != null) {
			ICompilationUnit cu= pack.getCompilationUnit(typeName + ".java"); 
			if (cu.exists()) {
					status.setError(Messages.getString("NewTestClassWizPage.error.testcase.already_exists")); 
				return status;
			}
		}
		return status;
	}
	
	/**
	 * @see IWizardPage#canFlipToNextPage
	 */
	public boolean canFlipToNextPage() {
		return isPageComplete() && getNextPage() != null && isNextPageValid();
	}
	protected boolean isNextPageValid() {
		return !getClassToTestText().equals(""); 
	}
	protected JUnitStatus validateClassToTest() {
		IPackageFragmentRoot root= getPackageFragmentRoot();
		IPackageFragment pack= getPackageFragment();
		String classToTestName= fClassToTestText.getText();
		JUnitStatus status= new JUnitStatus();
		
		fClassToTest= null;