Bug 11842 new TestCase not always initialized correctly
It works for CUs but not for classes Test Case: select class Test in the Packages view and create an new TestCase ==> only superclass field is initialized
org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java
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;
		if (classToTestName.length() == 0) {
			return status;
		}
		IStatus val= JavaConventions.validateJavaTypeName(classToTestName);
		if (!val.isOK()) {
			status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_valid")); 
			return status;
		}
		
		if (root != null) {
			try {		
				IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(root.getJavaProject(), pack, classToTestName);
				
				if (type == null) {
					
					status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_exist")); 
					return status;
				} else {
					if (type.isInterface()) {
						status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.is_interface",classToTestName));