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 2016/02/17 20:38:56 UTC
svn commit: r1730924 -
/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java
Author: schor
Date: Wed Feb 17 19:38:56 2016
New Revision: 1730924
URL: http://svn.apache.org/viewvc?rev=1730924&view=rev
Log:
no Jira - add 2 comments
Modified:
uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java
Modified: uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java
URL: http://svn.apache.org/viewvc/uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java?rev=1730924&r1=1730923&r2=1730924&view=diff
==============================================================================
--- uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java (original)
+++ uima/uimaj/branches/experiment-v3-jcas/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexSerializationTest.java Wed Feb 17 19:38:56 2016
@@ -226,8 +226,8 @@ public class IndexSerializationTest exte
CASCompleteSerializer cs;
cs = Serialization.serializeCASComplete(casMgr);
// casMgr = CASFactory.createCAS();
- CASMgr realCasMgr = CASFactory.createCAS();
- ((CASImpl) realCasMgr).commitTypeSystem();
+ CASMgr realCasMgr = CASFactory.createCAS(); // creates base view, but no ts, so no ir
+ ((CASImpl) realCasMgr).commitTypeSystem(); // also makes index repo (which will be replaced), but doesn't init the built-in indexes
Serialization.deserializeCASComplete(cs, realCasMgr);
cas = ((CASImpl) realCasMgr).getCurrentView();
casMgr = (CASMgr) cas;