tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1241038 - in /tuscany/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/bi...
Date Mon, 06 Feb 2012 15:08:16 GMT
Author: antelder
Date: Mon Feb  6 15:08:16 2012
New Revision: 1241038

URL: http://svn.apache.org/viewvc?rev=1241038&view=rev
Log:
Update some itests for the change to include the exception class in the response msg

Modified:
    tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
    tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
    tuscany/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java

Modified: tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java?rev=1241038&r1=1241037&r2=1241038&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
Mon Feb  6 15:08:16 2012
@@ -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

Modified: tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java?rev=1241038&r1=1241037&r2=1241038&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/testing/itest/jms/exceptions1/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java
Mon Feb  6 15:08:16 2012
@@ -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"));
         }
     }
 

Modified: tuscany/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java?rev=1241038&r1=1241037&r2=1241038&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/testing/itest/jms/format-jmsobject/src/main/java/org/apache/tuscany/sca/binding/jms/format/jmsobject/helloworld/HelloWorldReferenceImpl.java
Mon Feb  6 15:08:16 2012
@@ -103,7 +103,7 @@ public class HelloWorldReferenceImpl imp
         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;



Mime
View raw message