diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-10 11:50:26 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-10 11:50:26 +0000 |
commit | 65c3feca2a71d47333d4aa53db482a07f6f4cf0f (patch) | |
tree | 1b2b14cf351fe473f1800dffa0399c2712119765 /sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test | |
parent | 9c0642acac91990cd5cc4c9efa09c02f013b9f18 (diff) |
Add exceptions back into test case so that runtime errors are reported back to the outside world. Change the two nodes test case back to how it was to take account of it.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@889211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test')
-rw-r--r-- | sca-java-2.x/trunk/itest/nodes/two-nodes-test/src/test/java/itest/StopStartNodesTestCase.java | 8 |
1 files changed, 7 insertions, 1 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 beb38929ca..998492734b 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 @@ -61,7 +61,13 @@ public class StopStartNodesTestCase { client = clientNode.getService(Helloworld.class, "HelloworldClient");
assertNotNull(client);
- assertEquals(true, client.sayHello("Petra").startsWith("Unable to bind"));
+ try {
+ client.sayHello("Petra");
+ fail();
+ } catch (Exception e) {
+ // expected
+ // TODO: better exception than NPE
+ }
serviceNode = factory.createNode(new Contribution("service", getJar("../helloworld-service/target")));
serviceNode.start();
|