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 2012/01/10 16:03:11 UTC

svn commit: r1229577 - /uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java

Author: cwiklik
Date: Tue Jan 10 15:03:11 2012
New Revision: 1229577

URL: http://svn.apache.org/viewvc?rev=1229577&view=rev
Log:
UIMA-2309 in sendCAS() check is the test is in stopping state before sending another CAS to a service

Modified:
    uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java

Modified: uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java?rev=1229577&r1=1229576&r2=1229577&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java (original)
+++ uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/utils/BaseTestSupport.java Tue Jan 10 15:03:11 2012
@@ -601,6 +601,9 @@ public abstract class BaseTestSupport ex
           boolean sendCasAsynchronously) throws Exception {
     engine = eeUimaEngine;
     for (int i = 0; i < howMany; i++) {
+    	if (isStopping) {
+    		break;
+    	}
       CAS cas = eeUimaEngine.getCAS();
       if (cas == null) {
         if (isStopping) {