Examples of TestStatus


Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

    } else if (uimaCategory.equals(UIMAUtil.TYPE_SYSTEM_CTG)) {
      return testTypeSystem();
    }

    // create Test status object
    TestStatus status = new TestStatus();
    status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
            "installation_verification_type_not_detected", new Object[] { this.pkgBrowser
                    .getInstallationDescriptor().getMainComponentId() }, null));

    return status;
  }
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

        if (ae != null) {
          cas = ae.newCAS();
        }
       
        // create Test status object
        TestStatus status = new TestStatus();
   
        //check test result
        if (ae != null && cas != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_ae_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

        ResourceSpecifier ccSpecifier = UIMAFramework.getXMLParser().parseResourceSpecifier(xmlIn);

        CasConsumer cc = UIMAFramework.produceCasConsumer(ccSpecifier,
                getResourceManager(this.pkgBrowser), null);
        // create Test status object
        TestStatus status = new TestStatus();
   
        if (cc != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_cc_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

        ResourceSpecifier ciSpecifier = UIMAFramework.getXMLParser().parseResourceSpecifier(xmlIn);
       
        CasInitializer ci = UIMAFramework.produceCasInitializer(ciSpecifier,
                getResourceManager(this.pkgBrowser), null);
        // create Test status object
        TestStatus status = new TestStatus();
   
        if (ci != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_ci_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

   
        CollectionReader cr = UIMAFramework.produceCollectionReader(crSpecifier,
                getResourceManager(this.pkgBrowser), null);
   
        // create Test status object
        TestStatus status = new TestStatus();
   
        if (cr != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_cr_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

   
        CollectionProcessingEngine cpe = UIMAFramework.produceCollectionProcessingEngine(
                cpeDescription, getResourceManager(this.pkgBrowser), null);
   
        // create Test status object
        TestStatus status = new TestStatus();
   
        if (cpe != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_cpe_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

        TypePriorities tPriorities = UIMAFramework.getResourceSpecifierFactory().createTypePriorities();
        FsIndexDescription[] fsIndexes = new FsIndexDescription[0];
        CAS cas = CasCreationUtils.createCas(tsDescription, tPriorities, fsIndexes);
   
        // create Test status object
        TestStatus status = new TestStatus();
   
        if (cas != null) {
          status.setRetCode(TestStatus.TEST_SUCCESSFUL);
        } else {
          status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
          status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
                  "installation_verification_cas_not_created", new Object[] { this.pkgBrowser
                          .getInstallationDescriptor().getMainComponentId() }, null));
        }
   
        // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

    } else if (uimaCategory.equals(UIMAUtil.TYPE_SYSTEM_CTG)) {
      return testTypeSystem();
    }

    // create Test status object
    TestStatus status = new TestStatus();
    status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
            "installation_verification_type_not_detected", new Object[] { this.pkgBrowser
                    .getInstallationDescriptor().getMainComponentId() }, null));

    return status;
  }
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

    if (ae != null) {
      cas = ae.newCAS();
    }
   
    // create Test status object
    TestStatus status = new TestStatus();

    //check test result
    if (ae != null && cas != null) {
      status.setRetCode(TestStatus.TEST_SUCCESSFUL);
    } else {
      status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
      status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
              "installation_verification_ae_not_created", new Object[] { this.pkgBrowser
                      .getInstallationDescriptor().getMainComponentId() }, null));
    }

    // reset system properties
View Full Code Here

Examples of org.apache.uima.pear.tools.InstallationController.TestStatus

            .getMainComponentDesc());
    ResourceSpecifier ccSpecifier = UIMAFramework.getXMLParser().parseResourceSpecifier(xmlIn);
    CasConsumer cc = UIMAFramework.produceCasConsumer(ccSpecifier,
            getResourceManager(this.pkgBrowser), null);
    // create Test status object
    TestStatus status = new TestStatus();

    if (cc != null) {
      status.setRetCode(TestStatus.TEST_SUCCESSFUL);
    } else {
      status.setRetCode(TestStatus.TEST_NOT_SUCCESSFUL);
      status.setMessage(I18nUtil.localizeMessage(PEAR_MESSAGE_RESOURCE_BUNDLE,
              "installation_verification_cc_not_created", new Object[] { this.pkgBrowser
                      .getInstallationDescriptor().getMainComponentId() }, null));
    }

    // reset system properties
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.