You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by tw...@apache.org on 2007/02/13 16:52:21 UTC

svn commit: r507070 - /incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/GetAllIndexedTest.java

Author: twgoetz
Date: Tue Feb 13 07:52:20 2007
New Revision: 507070

URL: http://svn.apache.org/viewvc?view=rev&rev=507070
Log:
Jira UIMA-297: final version of unit tests.

https://issues.apache.org/jira/browse/UIMA-297

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=507070&r1=507069&r2=507070
==============================================================================
--- 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 07:52:20 2007
@@ -203,6 +203,16 @@
       copy.moveToNext();
     }
     assertFalse(copy.isValid());
+    
+    // Iterate over all indexed, create a copy at each stage, check that it gets same FS.
+    for (it.moveToFirst(); it.isValid(); it.moveToNext()) {
+      copy = it.copy();
+      assertTrue(it.get().equals(copy.get()));
+    }
+    copy = it.copy();
+    assertFalse(it.isValid());
+    assertFalse(copy.isValid());
+    
   }
 
   public static void main(String[] args) {