Author: ningjiang
Date: Sat Dec 10 15:06:16 2011
New Revision: 1212810
URL: http://svn.apache.org/viewvc?rev=1212810&view=rev
Log:
CXF-3966 fixed the systest failure of JAXRSClientServerSpringBookTest
Modified:
cxf/branches/2.4.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Modified: cxf/branches/2.4.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java?rev=1212810&r1=1212809&r2=1212810&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
(original)
+++ cxf/branches/2.4.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Sat Dec 10 15:06:16 2011
@@ -331,13 +331,13 @@ public class JAXRSClientServerSpringBook
public void testAddInvalidXmlBook() throws Exception {
doPost("http://localhost:" + PORT + "/the/bookstore/books/convert",
- 500,
+ 400,
"application/xml",
"resources/add_book.txt",
null);
doPost("http://localhost:" + PORT + "/the/thebooks/bookstore/books/convert",
- 500,
+ 400,
"application/xml",
"resources/add_book.txt",
null);
@@ -348,13 +348,13 @@ public class JAXRSClientServerSpringBook
public void testAddInvalidJsonBook() throws Exception {
doPost("http://localhost:" + PORT + "/the/bookstore/books/convert",
- 500,
+ 400,
"application/json",
"resources/add_book2json_invalid.txt",
null);
doPost("http://localhost:" + PORT + "/the/thebooks/bookstore/books/convert",
- 500,
+ 400,
"application/json",
"resources/add_book2json_invalid.txt",
null);
@@ -539,7 +539,7 @@ public class JAXRSClientServerSpringBook
int result = httpclient.executeMethod(post);
assertEquals(expectedStatus, result);
- if (expectedStatus != 500) {
+ if (expectedStatus != 400) {
InputStream expected = getClass().getResourceAsStream(expectedResource);
assertEquals(getStringFromInputStream(expected), post.getResponseBodyAsString());
} else {
|