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
This commit is contained in:
parent
d5c2ef5c9f
commit
b8cd8af0c6
3 changed files with 4 additions and 4 deletions
sca-java-2.x/trunk/testing/itest/jms
exceptions/src/test/java/org/apache/tuscany/sca/binding/jms
exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms
format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld
|
@ -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
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue