Author: schor Date: Wed Nov 30 22:56:57 2011 New Revision: 1208863 URL: http://svn.apache.org/viewvc?rev=1208863&view=rev Log: [UIMA-2295] fix timing bug in testcase
Modified: uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/CpmInitTest.java Modified: uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/CpmInitTest.java URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/CpmInitTest.java?rev=1208863&r1=1208862&r2=1208863&view=diff ============================================================================== --- uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/CpmInitTest.java (original) +++ uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/CpmInitTest.java Wed Nov 30 22:56:57 2011 @@ -43,7 +43,7 @@ public class CpmInitTest extends TestCas } public void testInitSingleThreadCPMMode() throws Exception { - int documentCount = 10000; + int documentCount = 10000000; int threadCount = 1; // setup CPM to process 1 documents @@ -60,10 +60,10 @@ public class CpmInitTest extends TestCas while (!listener.isInitialized()) { Thread.sleep(10); } - System.out.println("Initialize was called: " + listener.isInitialized()); + System.out.println("SingleThreadCPMMode Initialize was called: " + listener.isInitialized()); // Let the CPM process some docs, before calling stop - Thread.sleep(500); + Thread.sleep(300); // stop CPM cpe.stop(); @@ -75,7 +75,7 @@ public class CpmInitTest extends TestCas } public void testInitMultiThreadCPMMode() throws Exception { - int documentCount = 10000; // hopefully enough that we won't finish before we abort + int documentCount = 10000000; // hopefully enough that we won't finish before we abort int threadCount = 1; // setup CPM to process 1 documents @@ -91,10 +91,10 @@ public class CpmInitTest extends TestCas while (!listener.isInitialized()) { Thread.sleep(10); } - System.out.println("Initialize was called: " + listener.isInitialized()); + System.out.println("MultiThreadCPMMode Initialize was called: " + listener.isInitialized()); // Let the CPM process some docs, before calling stop - Thread.sleep(500); + Thread.sleep(300); // stop CPM cpe.stop(); @@ -106,7 +106,7 @@ public class CpmInitTest extends TestCas } public void testInitMultiThreadCPM() throws Exception { - int documentCount = 10000; + int documentCount = 10000000; int threadCount = 3; // setup CPM to process documents @@ -125,7 +125,7 @@ public class CpmInitTest extends TestCas System.out.println("testInitMultiThreadCPM()-Initialize was called: " + listener.isInitialized()); // Let the CPM process some docs, before calling stop - Thread.sleep(500); + Thread.sleep(300); // stop CPM cpe.stop();