You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/09/07 21:52:15 UTC

svn commit: r993506 - /tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java

Author: slaws
Date: Tue Sep  7 19:52:14 2010
New Revision: 993506

URL: http://svn.apache.org/viewvc?rev=993506&view=rev
Log:
TUSCANY-3670 - temp fix to ensure that the client finds the domain. I need to better understand what the various URIs mean for final fix. 

Modified:
    tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java

Modified: tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java?rev=993506&r1=993505&r2=993506&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java Tue Sep  7 19:52:14 2010
@@ -92,7 +92,11 @@ public class SCAClientTestCase {
         node = NodeFactory.newInstance("uri:myFooDomain?bind=127.0.0.1:14821").createNode((String)null, new String[] {"target/classes"});
         node.start();
 
-        HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent");
+        // TUSCANY-3670 - why factory takes URI while node factory take configuration string?
+        //                hacked this for now to make the client domain name match the domain 
+        //                name that's pulled out of the factory URI
+        //HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent");
+        HelloworldService service = SCAClientFactory.newInstance(URI.create("myFooDomain")).getService(HelloworldService.class, "HelloworldComponent");
         assertEquals("Hello petra", service.sayHello("petra"));
     }
 
@@ -101,7 +105,11 @@ public class SCAClientTestCase {
         node = NodeFactory.newInstance("uri:myFooDomain?bind=127.0.0.1:14821").createNode((String)null, new String[] {"target/classes"});
         node.start();
 
-        HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent");
+        // TUSCANY-3670 - why factory takes URI while node factory take configuration string?
+        //                hacked this for now to make the client domain name match the domain 
+        //                name that's pulled out of the factory URI
+        //HelloworldService service = SCAClientFactory.newInstance(URI.create("uri:myFooDomain?wka=127.0.0.1:14821")).getService(HelloworldService.class, "HelloworldComponent");
+        HelloworldService service = SCAClientFactory.newInstance(URI.create("myFooDomain")).getService(HelloworldService.class, "HelloworldComponent");        
         assertEquals("Hello petra", service.sayHello("petra"));
     }