You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2007/05/21 21:39:21 UTC
svn commit: r540251 -
/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java
Author: schor
Date: Mon May 21 12:39:20 2007
New Revision: 540251
URL: http://svn.apache.org/viewvc?view=rev&rev=540251
Log:
[UIMA-409] update test because setCAS no longer is used.
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java?view=diff&rev=540251&r1=540250&r2=540251
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/SerializationReinitTest.java Mon May 21 12:39:20 2007
@@ -538,10 +538,14 @@
// CASMgr casMgr = CASFactory.createCAS();
// casMgr.setCAS(cas);
// cas = (CAS) casMgr.getCAS();
- CASMgr realCasMgr = CASFactory.createCAS();
+ /* setCAS is no longer used or implemented
+ * You cannot use this method to set up a new cas with a copy of
+ * the contents of another cas, including its indexes
+ CASMgr realCasMgr = CASFactory.createCAS(cas.getTypeSystem());
realCasMgr.setCAS(((CASImpl) cas).getBaseCAS());
cas = ((CASImpl) realCasMgr).getCurrentView();
casMgr = (CASMgr) cas;
+ */
assertTrue(numTok == cas.getAnnotationIndex(tokenType).size());
@@ -554,10 +558,14 @@
// casMgr = CASFactory.createCAS();
// casMgr.setCAS(cas);
// cas = (CAS) casMgr.getCAS();
+ /* setCAS is no longer used or implemented
+ * You cannot use this method to set up a new cas with a copy of
+ * the contents of another cas, including its indexes
realCasMgr = CASFactory.createCAS();
realCasMgr.setCAS(((CASImpl) cas).getBaseCAS());
cas = ((CASImpl) realCasMgr).getCurrentView();
casMgr = (CASMgr) cas;
+ */
assertTrue(numTok == cas.getAnnotationIndex(tokenType).size());
assertTrue(numSent == cas.getAnnotationIndex(sentenceType).size());
@@ -566,10 +574,14 @@
// casMgr = CASFactory.createCAS();
// casMgr.setCAS(cas);
// cas = (CAS) casMgr.getCAS();
+ /* setCAS is no longer used or implemented
+ * You cannot use this method to set up a new cas with a copy of
+ * the contents of another cas, including its indexes
realCasMgr = CASFactory.createCAS();
realCasMgr.setCAS(((CASImpl) cas).getBaseCAS());
cas = ((CASImpl) realCasMgr).getCurrentView();
casMgr = (CASMgr) cas;
+ */
assertTrue(numTok == cas.getAnnotationIndex(tokenType).size());
assertTrue(numSent == cas.getAnnotationIndex(sentenceType).size());