summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-13 12:44:04 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-02-13 12:44:04 +0000
commit32e8fe1bf7e0f0c7211a05b7ac02bc2cae39215e (patch)
tree4ef5123a3406c1f9844597a4696d940772e4bcd4 /branches
parentbadbc7dc425565a941b0af7dc374879da6ff9bb4 (diff)
Activate the unchecked exception test, still need to establish what the response should really look like
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@744102 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/itest/jms-nonscaclient-exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java17
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 {