public class UimaTests extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TEST_ABSTRACT |
static String |
TEST_DEPENDENCY |
static String |
TEST_SENTENCE |
| Constructor and Description |
|---|
UimaTests() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertContains(org.apache.uima.jcas.JCas jCas,
Class<? extends org.apache.uima.jcas.tcas.Annotation> annot,
int expectedCnt) |
static void |
assertResultsContains(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations,
int begin,
int end) |
static void |
assertResultsContains(Collection<? extends org.apache.uima.jcas.cas.TOP> annotations,
String fieldName,
Object expected) |
static void |
assertResultsContainsText(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations,
String... texts) |
static void |
assertResultsCovers(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations,
String textToBeCovered) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
createAnnot(org.apache.uima.jcas.JCas jCas,
Class<T> c,
int beg,
int end) |
static <T extends org.apache.uima.jcas.tcas.Annotation> |
createAnnot(org.apache.uima.jcas.JCas jCas,
Class<T> c,
int beg,
int end,
String assertCoveredText) |
static org.apache.uima.jcas.JCas |
getTestCas() |
static org.apache.uima.jcas.JCas |
getTestCas(String text) |
static org.apache.uima.jcas.JCas |
getTokenizedTestCas() |
static org.apache.uima.jcas.JCas |
getTokenizedTestCas(String text) |
public static final String TEST_SENTENCE
public static final String TEST_ABSTRACT
public static final String TEST_DEPENDENCY
public static org.apache.uima.jcas.JCas getTestCas()
throws org.apache.uima.UIMAException
org.apache.uima.UIMAExceptionpublic static org.apache.uima.jcas.JCas getTestCas(String text) throws org.apache.uima.UIMAException
org.apache.uima.UIMAExceptionpublic static <T extends org.apache.uima.jcas.tcas.Annotation> T createAnnot(org.apache.uima.jcas.JCas jCas,
Class<T> c,
int beg,
int end)
throws Exception
Exceptionpublic static <T extends org.apache.uima.jcas.tcas.Annotation> T createAnnot(org.apache.uima.jcas.JCas jCas,
Class<T> c,
int beg,
int end,
String assertCoveredText)
throws Exception
Exceptionpublic static void assertResultsContains(Collection<? extends org.apache.uima.jcas.cas.TOP> annotations, String fieldName, Object expected) throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
public static void assertResultsContains(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations, int begin, int end)
public static void assertResultsContainsText(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations, String... texts)
annotations - texts - the EXACT corresponding text of ALL the annotationspublic static void assertResultsCovers(Collection<? extends org.apache.uima.jcas.tcas.Annotation> annotations, String textToBeCovered)
annotations - textToBeCovered - public static org.apache.uima.jcas.JCas getTokenizedTestCas(String text) throws org.apache.uima.UIMAException, IOException
text - org.apache.uima.UIMAExceptionIOExceptionpublic static org.apache.uima.jcas.JCas getTokenizedTestCas()
throws org.apache.uima.UIMAException,
IOException
org.apache.uima.UIMAExceptionIOExceptionpublic static void assertContains(org.apache.uima.jcas.JCas jCas,
Class<? extends org.apache.uima.jcas.tcas.Annotation> annot,
int expectedCnt)
Copyright © 2015 Bluebrain Project. All rights reserved.