You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2009/09/08 17:34:30 UTC

svn commit: r812558 - /incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java

Author: cwiklik
Date: Tue Sep  8 15:34:29 2009
New Revision: 812558

URL: http://svn.apache.org/viewvc?rev=812558&view=rev
Log:
UIMA-1560 Modified testProcess() to fix unconditional wait()

Modified:
    incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java

Modified: incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java?rev=812558&r1=812557&r2=812558&view=diff
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-cpe/src/test/java/org/apache/uima/collection/impl/cpm/SofaMixedCPE_Test.java Tue Sep  8 15:34:29 2009
@@ -80,9 +80,11 @@
   public void testProcess() throws Throwable {
     try {
       cpe.process();
-      // wait till cpe finishes
-      synchronized (statCbL1) {
-        statCbL1.wait();
+      while ( cpe.isProcessing() ) {
+        // wait till cpe finishes
+        synchronized (statCbL1) {
+          statCbL1.wait(100);
+        }
       }
     } catch (Exception e) {
       JUnitExtension.handleException(e);