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:04:23 UTC

svn commit: r821918 - /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:04:23 2009
New Revision: 821918

URL: http://svn.apache.org/viewvc?rev=821918&view=rev
Log:
UIMA-1593 Added testMultiInstanceDeployFailureInPrimitiveService() to test detection of misconfiguration between AE descriptor and deployment descriptor

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=821918&r1=821917&r2=821918&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:04:23 2009
@@ -278,6 +278,26 @@
   }
 
   /**
+   * Tests detection of misconfiguration between deployement descriptor and AE descriptor.
+   * The AE descriptor is configured to allow one instance of the AE while the deployment
+   * descriptor attempts to scale out the service containing the AE. ResourceInitializationException
+   * is expected.
+   * 
+   * @throws Exception
+   */
+  public void testMultiInstanceDeployFailureInPrimitiveService() throws Exception {
+    System.out.println("-------------- testMultiInstanceDeployFailureInPrimitiveService -------------");
+    // Instantiate Uima EE Client
+    BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
+    try {
+      // Deploy Uima EE Primitive Service
+      deployService(eeUimaEngine, relativePath + "/Deploy_ScaledPersonTitleAnnotator.xml");
+      fail("Expected ResourceInitializationException Due to Misconfiguration but instead the service initialized successfully");
+    } catch ( ResourceInitializationException e) {
+      // expected
+    }
+  }
+  /**
    * Tests processing of an Exception that a service reports on CPC
    * 
    * @throws Exception