Examples of JUnitStatus


Examples of org.eclipse.jdt.internal.junit.util.JUnitStatus

   * 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) {
View Full Code Here

Examples of org.eclipse.jdt.internal.junit.util.JUnitStatus

   * </p>
   *
   * @return the status of the validation
   */
  protected IStatus xmlFileUnderTestChanged() {
    JUnitStatus status = new JUnitStatus();

    status.setOK();
    return status;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.