diff options
-rw-r--r-- | branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java index fcf05fda75..2ccdbc021b 100644 --- a/branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java +++ b/branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java @@ -95,13 +95,16 @@ public class ExceptionsTestCase { Message m = receiveJMSResponse();
assertXMLEqual(CHECKED_CHAINED_XML, ((TextMessage)m).getText());
}
-//
-// @Test
-// public void testTextUnChecked() throws NamingException, JMSException, SAXException, IOException {
-// sendJMSTextRequest("throwUnChecked");
-// Message m = receiveJMSResponse();
-// assertXMLEqual(CHECKED_XML, ((TextMessage)m).getText());
-// }
+
+ @Test
+ public void testTextUnChecked() throws NamingException, JMSException, SAXException, IOException {
+ sendJMSTextRequest("throwUnChecked");
+ Message m = receiveJMSResponse();
+
+ // FIXME: what should the response message be for unchecked exceptions with wireFormat.textXML???
+ Object o = ((ObjectMessage)m).getObject();
+ assertTrue(o instanceof ServiceRuntimeException);
+ }
@Test
public void testObjectChecked() throws NamingException, JMSException {
|