cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1545648 - /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Date Tue, 26 Nov 2013 13:20:05 GMT
Author: sergeyb
Date: Tue Nov 26 13:20:04 2013
New Revision: 1545648

URL: http://svn.apache.org/r1545648
Log:
Fixing JAXRSClientServerBookTest

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java?rev=1545648&r1=1545647&r2=1545648&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java
Tue Nov 26 13:20:04 2013
@@ -114,7 +114,7 @@ public class JAXRSClientServerBookTest e
             fail("Redirect to different host is not allowed");
         } catch (ProcessingException ex) {
             Throwable cause = ex.getCause();
-            assertTrue(cause.getMessage().startsWith("Different HTTP Scheme or Host Redirect
detected on"));
+            assertTrue(cause.getMessage().contains("Different HTTP Scheme or Host Redirect
detected on"));
         }
     }
     
@@ -159,7 +159,7 @@ public class JAXRSClientServerBookTest e
             fail("relative Redirect is not allowed");
         } catch (ProcessingException ex) {
             Throwable cause = ex.getCause();
-            assertTrue(cause.getMessage().startsWith("Relative Redirect detected on"));
+            assertTrue(cause.getMessage().contains("Relative Redirect detected on"));
         }
     }
     



Mime
View raw message