You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2011/05/06 15:42:54 UTC
svn commit: r1100212 -
/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java
Author: antelder
Date: Fri May 6 13:42:54 2011
New Revision: 1100212
URL: http://svn.apache.org/viewvc?rev=1100212&view=rev
Log:
Update testcase to use local loop back address to try to avoid network issues
Modified:
tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java
Modified: tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java?rev=1100212&r1=1100211&r2=1100212&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java Fri May 6 13:42:54 2011
@@ -35,12 +35,13 @@ public class HelloworldTestCase {
@Test
public void testSayHello() throws NoSuchDomainException, NoSuchServiceException {
+ System.setProperty("domainURI", "uri:default?wka=127.0.0.1:7654");
HelloworldSCAClient.main(new String[0]);
}
@BeforeClass
public static void start() throws ContributionReadException, ActivationException, ValidationException {
- node = TuscanyRuntime.newInstance().createNode("uri:default");
+ node = TuscanyRuntime.newInstance().createNode("uri:default?bind=127.0.0.1:7654");
node.installContribution(null, "../helloworld/target/classes", null, null, true);
}