uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r703882 - in /incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test: java/org/apache/uima/ee/test/TestUimaASExtended.java resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml
Date Sun, 12 Oct 2008 21:27:18 GMT
Author: schor
Date: Sun Oct 12 14:27:18 2008
New Revision: 703882

URL: http://svn.apache.org/viewvc?rev=703882&view=rev
Log:
[UIMA-1171] add test case

Modified:
    incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
    incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java?rev=703882&r1=703881&r2=703882&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
(original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
Sun Oct 12 14:27:18 2008
@@ -324,6 +324,31 @@
     
   }
     
+  /**
+   * Tests the shutdown due to a failure in the Flow Controller when initializing AND have
delegates to disable
+   * (Jira issue UIMA-1171)
+   * 
+   * @throws Exception
+   */
+  public void testTerminateOnFlowControllerExceptionOnInitializationWithDisabledDelegates()
throws Exception {
+    System.out.println("-------------- testTerminateOnFlowControllerExceptionOnInitializationWithDisabledDelegates
-----");
+    
+    BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
+    String containerId = null;
+    try {
+        containerId = deployService(eeUimaEngine, relativePath+"/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml");
+      fail("Expected ResourceInitializationException. Instead, the Aggregate Deployed Successfully");
+    } catch (ResourceInitializationException e) {
+      System.out.println("\nExpected Initialization Exception was received - cause: "+e.getCause());
+    } catch (Exception e) {
+      fail("Expected ResourceInitializationException. Instead Got:" + e.getClass());
+    }
+    finally
+    {
+    	eeUimaEngine.undeploy(containerId);
+    }
+  }
+    
 	/**
 	 * Deploys a Primitive Uima EE service and sends 5 CASes to it.
 	 * 

Modified: incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml
URL: http://svn.apache.org/viewvc/incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml?rev=703882&r1=703881&r2=703882&view=diff
==============================================================================
--- incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml
(original)
+++ incubator/uima/sandbox/trunk/uima-as/uimaj-as-activemq/src/test/resources/deployment/Deploy_AggregateWithFlowControllerExceptionOnInitialization.xml
Sun Oct 12 14:27:18 2008
@@ -42,7 +42,7 @@
 	                  <inputQueue endpoint="NoOpAnnotatorQueue" brokerURL="tcp://localhost:8118"/>
 	                  <serializer method="xmi"/>
                       <asyncAggregateErrorConfiguration>
-                            <getMetadataErrors maxRetries="0" timeout="5000" errorAction="terminate"
/>
+                            <getMetadataErrors maxRetries="0" timeout="5000" errorAction="disable"
/>
                             <processCasErrors maxRetries="0" timeout="5000" thresholdCount="4"
thresholdAction="disable" continueOnRetryFailure="true"/>
                       </asyncAggregateErrorConfiguration>
           </remoteAnalysisEngine>



Mime
View raw message