diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 16:34:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-18 16:34:01 +0000 |
commit | 1180699e1cde49aa9690beff9daa48196c53f177 (patch) | |
tree | 19d6a6f9a00d90cd9e2d1cc0f4b00c89cec31a03 /sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org | |
parent | ed5372c2151619ccc52dccf27be611ba487492ef (diff) |
Update hazelcast binding to work with exceptions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@924887 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org')
2 files changed, 2 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java index 5b20c99a00..6a3fff0757 100644 --- a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java @@ -89,8 +89,7 @@ public class HazelcastBindingTestCase { service.testExceptions("runtime");
fail();
} catch (ServiceRuntimeException e) {
- // TODO test what the exception should be
-// assertEquals("runtime", e.getMessage());
+ assertEquals("org.oasisopen.sca.ServiceRuntimeException: Remote exception: class java.lang.RuntimeException:runtime", e.getMessage());
}
}
diff --git a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceImpl.java b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceImpl.java index 3042d25ada..6c9a5d71bf 100644 --- a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceImpl.java +++ b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/TestServiceImpl.java @@ -35,7 +35,7 @@ public class TestServiceImpl implements TestService { public String testExceptions(String s) throws BadStringException {
if (s.equals("runtime")) {
- throw new RuntimeException();
+ throw new RuntimeException("runtime");
}
throw new BadStringException(s);
}
|