Package org.apache.uima.test.junit_extension

Examples of org.apache.uima.test.junit_extension.AnnotatorTester


  /**
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception
  {
    this.annotRhinoTester = new AnnotatorTester(JUnitExtension.getFile("RhinoTestAnnotator.xml"));
  }
View Full Code Here


  /**
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception
  {
    this.annotAggregTester = new AnnotatorTester(JUnitExtension.getFile("BSFAggregatedAE.xml"));
  }
View Full Code Here

    // Run test max times
    final int max = 20;
    for (int i = 0; i < max; i++) {
      // create annotation tester with the regex annotator specifier
      AnnotatorTester annotTester = new AnnotatorTester(JUnitExtension
          .getFile("conceptFileLocking/repeatDescriptor.xml"));
      CAS cas = annotTester.performTest("Test a regex.", "en");
      // Document annotation and one "a" found.
      assertTrue(cas.getAnnotationIndex().size() == 2);
      try {
        org.apache.commons.io.FileUtils.forceDelete(conceptFile);
        BufferedOutputStream os = new BufferedOutputStream(new FileOutputStream(conceptFile));
View Full Code Here

   * @throws Exception
   */
  public void testEmptyRegex() throws Exception {

    // create annotation tester with the regex annotator specifier
    AnnotatorTester annotTester = new AnnotatorTester(JUnitExtension
        .getFile("emptyRegex/RegExEmptyRegex.xml"));
    CAS cas = annotTester.performTest("Test an empty regex.", "en");

//    // define result interested in
//    String[] tofs = { "org.apache.uima.TestAnnot", "org.apache.uima.TestAnnot:testFeature",
//        "org.apache.uima.TestAnnot:testFeature1", "org.apache.uima.TestAnnot1",
//        "org.apache.uima.TestAnnot1:testFeature", "org.apache.uima.TestAnnot1:testFeature1",
View Full Code Here

  /**
   * @see junit.framework.TestCase#setUp()
   */
  protected void setUp() throws Exception
  {
    this.annotTester = new AnnotatorTester(JUnitExtension.getFile("SnowballAnnotator.xml"));
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.test.junit_extension.AnnotatorTester

Copyright © 2018 www.massapicom. 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.