From 080a6c23874a133de067ad62c46bedb957561e07 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 8 Dec 2009 15:07:22 +0000 Subject: The test client no longer throws an exception so test for an appropriate response string in the failure case git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@888425 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/itest/StopStartNodesTestCase.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sca-java-2.x/trunk/itest/nodes/two-nodes-test') diff --git a/sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java b/sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java index 4a41ae8133..beb38929ca 100644 --- a/sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java +++ b/sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java @@ -60,14 +60,9 @@ public class StopStartNodesTestCase { client = clientNode.getService(Helloworld.class, "HelloworldClient"); assertNotNull(client); - try { - client.sayHello("Petra"); - fail(); - } catch (Exception e) { - // expected - // TODO: better exception than NPE - } + assertEquals(true, client.sayHello("Petra").startsWith("Unable to bind")); + serviceNode = factory.createNode(new Contribution("service", getJar("../helloworld-service/target"))); serviceNode.start(); -- cgit v1.2.3