summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-12-08 15:07:22 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-12-08 15:07:22 +0000
commit080a6c23874a133de067ad62c46bedb957561e07 (patch)
treed670d28f32bd4c5e796a4ebd8f11cacc64370f60 /sca-java-2.x/trunk
parentcd16d2dc01f7ccc4188a075d90f83d7f1c7c9250 (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java9
1 files changed, 2 insertions, 7 deletions
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();