From 7ead2c21b4dcecefb3703f881b5904a3f8bbc325 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 6 May 2011 13:42:54 +0000 Subject: Update testcase to use local loop back address to try to avoid network issues git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1100212 13f79535-47bb-0310-9956-ffa450edef68 --- .../helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java b/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java index d0ebf5be19..0f03a4b47d 100644 --- a/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java +++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-scaclient/src/test/java/sample/HelloworldTestCase.java @@ -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); } -- cgit v1.2.3