Author: jharting
Date: 2009-04-28 18:41:24 -0400 (Tue, 28 Apr 2009)
New Revision: 10687
Modified:
branches/community/Seam_2_1/examples/restbay/src/org/jboss/seam/example/restbay/test/ResourceQueryTest.java
Log:
fixed ResourceQueryTest
Modified:
branches/community/Seam_2_1/examples/restbay/src/org/jboss/seam/example/restbay/test/ResourceQueryTest.java
===================================================================
---
branches/community/Seam_2_1/examples/restbay/src/org/jboss/seam/example/restbay/test/ResourceQueryTest.java 2009-04-28
22:10:04 UTC (rev 10686)
+++
branches/community/Seam_2_1/examples/restbay/src/org/jboss/seam/example/restbay/test/ResourceQueryTest.java 2009-04-28
22:41:24 UTC (rev 10687)
@@ -42,7 +42,7 @@
@Override
protected void onResponse(MockHttpServletResponse response)
{
- String expectedResponse = "<?xml version=\"1.0\"
encoding=\"UTF-8\" standalone=\"yes\"?><resteasy:collection
xmlns:resteasy=\"http://jboss.org/resteasy\"><category>...
and Photography</name></category></resteasy:collection>";
+ String expectedResponse = "<?xml version=\"1.0\"
encoding=\"UTF-8\"
standalone=\"yes\"?><collection><category><categoryId>3</categoryId><name>Books</name></category><category><categoryId>4</categoryId><name>Cameras
and Photography</name></category></collection>";
assertEquals(response.getContentAsString(), expectedResponse,
"Unexpected response.");
}