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/helloworld-client/src/main | |
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/helloworld-client/src/main')
-rw-r--r-- | sca-java-2.x/trunk/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java b/sca-java-2.x/trunk/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java index c9bd11b3d9..2619dc269b 100644 --- a/sca-java-2.x/trunk/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java +++ b/sca-java-2.x/trunk/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java @@ -32,17 +32,12 @@ public class HelloworldImpl implements Helloworld { public Helloworld service; @Init - public void initialize(){ + public void initialize() throws Exception{ System.out.println(">>>>>> " + sayHello("init")); } - public String sayHello(String name) { - try { + public String sayHello(String name) throws Exception { return "Hi " + service.sayHello(name); - } catch (Exception e) { - e.printStackTrace(); - return e.getMessage(); - } } } |