summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-02-06 15:08:16 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-02-06 15:08:16 +0000
commitb8cd8af0c6a712e13334f74e1eeed9cd9bca7c7b (patch)
tree5d5abd629fe33c03fd0112666a268f18738aeebd /sca-java-2.x/trunk/testing
parentd5c2ef5c9f7c17d558e21c9aecf1ffcf647047be (diff)
Update some itests for the change to include the exception class in the response msg
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1241038 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing')
-rw-r--r--sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java4
-rw-r--r--sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java2
-rw-r--r--sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
index b266517282..4ba10f3d71 100644
--- a/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
@@ -104,7 +104,7 @@ public class ExceptionsTestCase {
// FIXME: what should the response message be for unchecked exceptions with wireFormat.textXML???
Object o = ((ObjectMessage)m).getObject();
assertTrue(o instanceof RuntimeException);
- assertTrue(((RuntimeException)o).getMessage().startsWith("Message = bla"));
+ assertTrue(((RuntimeException)o).getMessage().startsWith("Message = java.lang.RuntimeException: bla"));
}
@Test
@@ -149,7 +149,7 @@ public class ExceptionsTestCase {
Message m = receiveJMSResponse();
Object o = ((ObjectMessage)m).getObject();
assertTrue(o instanceof RuntimeException);
- assertTrue(((RuntimeException)o).getMessage().startsWith("Message = bla"));
+ assertTrue(((RuntimeException)o).getMessage().startsWith("Message = java.lang.RuntimeException: bla"));
}
@After
diff --git a/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
index 9d3a55754c..e5fd4ba3e6 100644
--- a/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
@@ -98,7 +98,7 @@ public class ExceptionsTestCase {
service.throwUnChecked();
fail();
} catch (Exception e) {
- assertTrue(e.getCause().getMessage().startsWith("Message = bla"));
+ assertTrue(e.getCause().getMessage().startsWith("Message = java.lang.RuntimeException: bla"));
}
}
diff --git a/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java b/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
index 04d4a02462..d93a1e51a2 100644
--- a/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
+++ b/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
@@ -103,7 +103,7 @@ public class HelloWorldReferenceImpl implements HelloWorldReference {
try {
helloWorldServiceDontWrapSingle.throwUnChecked(person);
} catch (Exception e) {
- returnString += " " + (e.getCause().getMessage().startsWith("Message = bla") ? "bla" : e.getCause().getMessage());
+ returnString += " " + (e.getCause().getMessage().startsWith("Message = java.lang.RuntimeException: bla") ? "bla" : e.getCause().getMessage());
}
return returnString;