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:35:41 UTC
svn commit: r540248 -
/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java
Author: schor
Date: Mon May 21 12:35:40 2007
New Revision: 540248
URL: http://svn.apache.org/viewvc?view=rev&rev=540248
Log:
[UIMA-409] make refs to cas HEAP go thru getHeap().
Modified:
incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java
Modified: incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java?view=diff&rev=540248&r1=540247&r2=540248
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/CasResetResizeTest.java Mon May 21 12:35:40 2007
@@ -51,25 +51,25 @@
// check default setting
TextAnalysisEngine taeDefault = UIMAFramework.produceTAE(testDescriptor);
CAS cas = taeDefault.newCAS();
- int heapSize = ((CASImpl) cas).heap.getCurrentTempSize();
+ int heapSize = ((CASImpl) cas).getHeap().getCurrentTempSize();
// System.out.println("Heap size: " + heapSize + ", buffer size: " + ((CASImpl)
- // cas).heap.heap.length);
+ // cas).getHeap().heap.length);
Assert.assertTrue(heapSize < CASImpl.DEFAULT_RESET_HEAP_SIZE);
- assertTrue(heapSize <= ((CASImpl) cas).heap.heap.length);
+ assertTrue(heapSize <= ((CASImpl) cas).getHeap().heap.length);
Type annotType = cas.getTypeSystem().getType(CAS.TYPE_NAME_ANNOTATION);
for (int i = 0; i < 2000000; i++) {
cas.createAnnotation(annotType, i, i);
}
- heapSize = ((CASImpl) cas).heap.getCurrentTempSize();
+ heapSize = ((CASImpl) cas).getHeap().getCurrentTempSize();
// System.out.println("Heap size: " + heapSize + ", buffer size: " + ((CASImpl)
- // cas).heap.heap.length);
- assertTrue(heapSize <= ((CASImpl) cas).heap.heap.length);
+ // cas).getHeap().heap.length);
+ assertTrue(heapSize <= ((CASImpl) cas).getHeap().heap.length);
Assert.assertTrue(heapSize > CASImpl.DEFAULT_RESET_HEAP_SIZE);
cas.reset();
- heapSize = ((CASImpl) cas).heap.getCurrentTempSize();
+ heapSize = ((CASImpl) cas).getHeap().getCurrentTempSize();
// System.out.println("Heap size: " + heapSize + ", buffer size: " + ((CASImpl)
- // cas).heap.heap.length);
- assertTrue(heapSize <= ((CASImpl) cas).heap.heap.length);
+ // cas).getHeap().heap.length);
+ assertTrue(heapSize <= ((CASImpl) cas).getHeap().heap.length);
Assert.assertTrue(heapSize < CASImpl.DEFAULT_RESET_HEAP_SIZE);
} catch (Exception e) {