You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by al...@apache.org on 2007/02/13 23:19:27 UTC
svn commit: r507264 -
/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java
Author: alally
Date: Tue Feb 13 14:19:26 2007
New Revision: 507264
URL: http://svn.apache.org/viewvc?view=rev&rev=507264
Log:
Test case for problem with getAllIndexedFS(Type)
UIMA-313: https://issues.apache.org/jira/browse/UIMA-313
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java?view=diff&rev=507264&r1=507263&r2=507264
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java Tue Feb 13 14:19:26 2007
@@ -31,6 +31,7 @@
import org.apache.uima.cas.FeatureStructure;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.TypeSystem;
+import org.apache.uima.cas.impl.XmiCasSerializer;
import org.apache.uima.resource.ResourceInitializationException;
import org.apache.uima.resource.ResourceSpecifier;
import org.apache.uima.test.junit_extension.JUnitExtension;
@@ -213,6 +214,11 @@
assertFalse(it.isValid());
assertFalse(copy.isValid());
+ //test getAllIndexed(Type)
+ Type tokenType = cas.getTypeSystem().getType(TOKEN_TYPE);
+ assertNotNull(tokenType);
+ FSIterator tokenIter = cas.getIndexRepository().getAllIndexedFS(tokenType);
+ assertFalse(tokenIter.hasNext());
}
public static void main(String[] args) {