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 2017/11/14 19:33:07 UTC

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

Author: cwiklik
Date: Tue Nov 14 19:33:07 2017
New Revision: 1815253

URL: http://svn.apache.org/viewvc?rev=1815253&view=rev
Log:
UIMA-5485

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

Modified: uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java?rev=1815253&r1=1815252&r2=1815253&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java (original)
+++ uima/uima-as/trunk/uimaj-as-activemq/src/test/java/org/apache/uima/ee/test/TestUimaASExtended.java Tue Nov 14 19:33:07 2017
@@ -130,7 +130,37 @@ public class TestUimaASExtended extends
 
 	return b.getDefaultSocketURIString();
     }  
-    
+    /*
+    @Test
+    public void testBrokerRestartWithPrimitiveMultiplier() throws Exception {
+      System.out.println("-------------- testBrokerRestartWithPrimitiveMultiplier -------------");
+      System.setProperty("BrokerURL", broker.getConnectorByName(DEFAULT_BROKER_URL_KEY).getUri().toString());
+
+      BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
+      
+      deployService(eeUimaEngine, relativePath + "/Deploy_RemoteCasMultiplier.xml");
+     
+      
+      broker.stop();
+      broker.waitUntilStopped();
+
+      broker = createBroker();
+      broker.start();
+      broker.waitUntilStarted();
+
+      String burl = broker.getConnectorByName(DEFAULT_BROKER_URL_KEY).getUri().toString();
+      Map<String, Object> appCtx = 
+      buildContext(burl, "TestMultiplierQueue");
+
+      // reduce the cas pool size and reply window
+      appCtx.remove(UimaAsynchronousEngine.ShadowCasPoolSize);
+      appCtx.put(UimaAsynchronousEngine.ShadowCasPoolSize, Integer.valueOf(2));
+      runTest(appCtx, eeUimaEngine,burl,
+              "TestMultiplierQueue", 1, PROCESS_LATCH);
+      
+      eeUimaEngine.stop();
+    }
+*/
     
     /**
      * This test starts a secondary broker, starts NoOp Annotator, and
@@ -665,37 +695,7 @@ public class TestUimaASExtended extends
 
     
 
-    @Test
-    public void testBrokerRestartWithPrimitiveMultiplier() throws Exception {
-      System.out.println("-------------- testBrokerRestartWithPrimitiveMultiplier -------------");
-      System.setProperty("BrokerURL", broker.getConnectorByName(DEFAULT_BROKER_URL_KEY).getUri().toString());
-
-      BaseUIMAAsynchronousEngine_impl eeUimaEngine = new BaseUIMAAsynchronousEngine_impl();
-      
-      deployService(eeUimaEngine, relativePath + "/Deploy_RemoteCasMultiplier.xml");
-     
-      
-      broker.stop();
-      broker.waitUntilStopped();
-
-      broker = createBroker();
-      broker.start();
-      broker.waitUntilStarted();
-
-      String burl = broker.getConnectorByName(DEFAULT_BROKER_URL_KEY).getUri().toString();
-      Map<String, Object> appCtx = 
-      buildContext(burl, "TestMultiplierQueue");
-
-      // reduce the cas pool size and reply window
-      appCtx.remove(UimaAsynchronousEngine.ShadowCasPoolSize);
-      appCtx.put(UimaAsynchronousEngine.ShadowCasPoolSize, Integer.valueOf(2));
-      runTest(appCtx, eeUimaEngine,burl,
-              "TestMultiplierQueue", 1, PROCESS_LATCH);
-      
-      eeUimaEngine.stop();
-    }
-
-    
+ 
     
   /*
   public void testContinueOnRetryFailure2() throws Exception {