Author: psharples
Date: Fri Mar 9 12:53:43 2012
New Revision: 1298816
URL: http://svn.apache.org/viewvc?rev=1298816&view=rev
Log:
minor update to fix a test run against tomcat
Modified:
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/WidgetsControllerTest.java
Modified:
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/WidgetsControllerTest.java
URL:
http://svn.apache.org/viewvc/incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/WidgetsControllerTest.java?rev=1298816&r1=1298815&r2=1298816&view=diff
==============================================================================
---
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/WidgetsControllerTest.java
(original)
+++
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/WidgetsControllerTest.java
Fri Mar 9 12:53:43 2012
@@ -488,7 +488,8 @@ public class WidgetsControllerTest exten
//
HttpClient client = new HttpClient();
setAuthenticationCredentials(client);
- GetMethod get = new GetMethod(TEST_POLICIES_SERVICE_URL_VALID +
encodeString("/" + WIDGET_ID_ACCESS_TEST));
+ // tomcat seems to need the "?format=xml" at the end (works without it
for jetty, but tomcat 6.0.32 fails - empty xml response)
+ GetMethod get = new GetMethod(TEST_POLICIES_SERVICE_URL_VALID +
encodeString("/" + WIDGET_ID_ACCESS_TEST)+"?format=xml");
get.setRequestHeader("accepts","text/xml");
client.executeMethod(get);
assertEquals(1,PoliciesControllerTest.processPolicies(get.getResponseBodyAsStream()).getChildren("policy").size());