Author: schor Date: Wed Jan 24 21:45:09 2018 New Revision: 1822165 URL: http://svn.apache.org/viewvc?rev=1822165&view=rev Log: no Jira, improve test cases - check results, time cas compare
Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XCASDeserializerTest.java uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XmiCasDeserializerTest.java Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XCASDeserializerTest.java URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XCASDeserializerTest.java?rev=1822165&r1=1822164&r2=1822165&view=diff ============================================================================== --- uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XCASDeserializerTest.java (original) +++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XCASDeserializerTest.java Wed Jan 24 21:45:09 2018 @@ -240,9 +240,11 @@ public class XCASDeserializerTest extend // } assertEquals(cas.getAnnotationIndex().size(), cas2.getAnnotationIndex().size()); if (XmiCasDeserializerTest.IS_CAS_COMPARE) { + long start = System.nanoTime(); CasCompare cc = new CasCompare((CASImpl)cas, (CASImpl)cas2); cc.compareIds(((CASImpl)cas).is_ll_enableV2IdRefs()); - cc.compareCASes(); + assertTrue(cc.compareCASes()); + System.out.format("compareCASes, time: %,d millisec%n",(System.nanoTime() - start) / 1000000L); } else { CasComparer.assertEquals(cas,cas2); } Modified: uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XmiCasDeserializerTest.java URL: http://svn.apache.org/viewvc/uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XmiCasDeserializerTest.java?rev=1822165&r1=1822164&r2=1822165&view=diff ============================================================================== --- uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XmiCasDeserializerTest.java (original) +++ uima/uv3/uimaj-v3/trunk/uimaj-core/src/test/java/org/apache/uima/cas/impl/XmiCasDeserializerTest.java Wed Jan 24 21:45:09 2018 @@ -386,7 +386,7 @@ public class XmiCasDeserializerTest exte long start = System.nanoTime(); int i = 0; // for (; i < 1000; i++) { - cc.compareCASes(); + assertTrue(cc.compareCASes()); // if (i % 10 == 0) { long end = System.nanoTime(); System.out.format("compareCASes i: %d, time: %,d millisec%n", i, (end - start) / 1000000L);