* modify or remove that validation.
*
* @return the status of the validation
*/
protected IStatus validateIfJUnitProject() {
JUnitStatus status = new JUnitStatus();
IPackageFragmentRoot root = getPackageFragmentRoot();
if (root != null) {
try {
IJavaProject project = root.getJavaProject();
if (project.exists()) {
if (isJUnit4()) {
if (!JUnitStubUtility.is50OrHigher(project)) {
status.setError(WizardMessages.NewCamelTestWizardPageOne_error_java5required);
return status;
}
if (project.findType(JUnitCorePlugin.JUNIT4_ANNOTATION_NAME) == null) {
status.setWarning(WizardMessages.NewCamelTestWizardPageOne__error_junit4NotOnbuildpath);
return status;
}
} else {
if (project.findType(JUnitCorePlugin.TEST_SUPERCLASS_NAME) == null) {
status.setWarning(WizardMessages.NewCamelTestWizardPageOne_error_junitNotOnbuildpath);
return status;
}
}
}
} catch (JavaModelException e) {