Author: ningjiang
Date: Sat Dec 10 15:10:08 2011
New Revision: 1212811
URL: http://svn.apache.org/viewvc?rev=1212811&view=rev
Log:
CXF-3966 fixed the systest failure of JAXRSClientServerSpringBookTest
Modified:
cxf/branches/2.3.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Modified:
cxf/branches/2.3.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java?rev=1212811&r1=1212810&r2=1212811&view=diff
==============================================================================
---
cxf/branches/2.3.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
(original)
+++
cxf/branches/2.3.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerSpringBookTest.java
Sat Dec 10 15:10:08 2011
@@ -241,13 +241,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);
@@ -258,13 +258,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);
@@ -449,7 +449,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 {