status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.not_visible",classToTestName));
status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.not_visible", new String[] {(type.isInterface())?Messages.getString("Interface"):Messages.getString("Class") , classToTestName}));
	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()) {		if (val.getSeverity() == IStatus.ERROR) {			status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_valid")); //$NON-NLS-1$			return status;		}				if (root != null) {			try {						IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(root.getJavaProject(), pack, classToTestName);				//IType type= wizpage.resolveClassToTestName();				if (type == null) {					//status.setWarning("Warning: "+typeLabel+" does not exist in current project.");					status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_exist")); //$NON-NLS-1$					return status;				} else {					if (type.isInterface()) {						status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.is_interface",classToTestName)); //$NON-NLS-1$					}					if (pack != null && !JavaModelUtil.isVisible(type, pack)) {						status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.not_visible",classToTestName));//$NON-NLS-1$					}				}				fClassToTest= type;			} catch (JavaModelException e) {				status.setError(Messages.getString("NewTestClassWizPage.error.class_to_test.not_valid")); //$NON-NLS-1$			}									} else {			status.setError(""); //$NON-NLS-1$		}		return status;	}