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/10/05 19:51:34 UTC

svn commit: r821936 - /incubator/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java

Author: cwiklik
Date: Mon Oct  5 17:51:34 2009
New Revision: 821936

URL: http://svn.apache.org/viewvc?rev=821936&view=rev
Log:
UIMA-1593 Added new testcase: testJmsServiceAdapterWithOverride()

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

Modified: incubator/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
URL: http://svn.apache.org/viewvc/incubator/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java?rev=821936&r1=821935&r2=821936&view=diff
==============================================================================
--- incubator/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java (original)
+++ incubator/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java Mon Oct  5 17:51:34 2009
@@ -1986,6 +1986,23 @@
     // PROCESS_LATCH);
   }
 
+  /**
+   * Tests use of a JMS Service Adapter and an override of the MultipleDeploymentAllowed. 
+   * In this test, the AE descriptor of the remote service is configured with MultipleDeploymentAllowed=false
+   * Without the override this causes an exception when instantiating Uima aggregate with
+   * MultipleDeploymentAllowed=true. 
+   * 
+   * @throws Exception
+   */
+  public void testJmsServiceAdapterWithOverride() throws Exception {
+    System.out.println("-------------- testJmsServiceAdapterWithOverride -------------");
+    BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
+    deployService(eeUimaEngine, relativePath + "/Deploy_SingleInstancePersonTitleAnnotator.xml");
+    deployService(eeUimaEngine, relativePath + "/Deploy_SyncAggregateWithJmsServiceAndScaleoutOverride.xml");
+    runTest(null, eeUimaEngine, String.valueOf(broker.getMasterConnectorURI()), "TopLevelTaeQueue",
+            10, PROCESS_LATCH);
+  }
+
   public void testJmsServiceAdapterWithException() throws Exception {
     System.out.println("-------------- testJmsServiceAdapterWithException -------------");
     BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();