diff options
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);
}
|