You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by bu...@apache.org on 2013/03/20 23:33:05 UTC

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

Author: burn
Date: Wed Mar 20 22:33:05 2013
New Revision: 1459084

URL: http://svn.apache.org/r1459084
Log:
UIMA-2755 - modified a JUnit test to have embedded placeholders

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=1459084&r1=1459083&r2=1459084&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 Wed Mar 20 22:33:05 2013
@@ -1261,9 +1261,13 @@ public class TestUimaASExtended extends 
 	    // Deploy Uima AS Primitive Service
 	    deployService(uimaAsEngine, relativePath + "/Deploy_PersonTitleAnnotator.xml");
 
-	    System.setProperty( "defaultBrokerURL", broker.getMasterConnectorURI());
-	    System.setProperty( "PersonTitleEndpoint", "PersonTitleAnnotatorQueue");
-	    Map<String, Object> appCtx = buildContext("${defaultBrokerURL}","${PersonTitleEndpoint}");//PersonTitleAnnotatorQueue");
+	    // Nest the placeholders in the broker & endpoint strings
+	    String url = broker.getMasterConnectorURI();
+	    System.setProperty( "defaultBrokerURL", url.substring(2,url.length()-2));
+	    String brokerUrl = url.substring(0,2) + "${defaultBrokerURL}" + url.substring(url.length()-2);	    
+	    System.setProperty( "PersonTitleEndpoint", "TitleAnnotator");
+	    String endpoint = "Person${PersonTitleEndpoint}Queue";  // "PersonTitleAnnotatorQueue"
+	    Map<String, Object> appCtx = buildContext(brokerUrl, endpoint);
 
 	    initialize(uimaAsEngine, appCtx);
 	    waitUntilInitialized();