You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by sc...@apache.org on 2009/12/16 13:24:57 UTC
svn commit: r891214 -
/incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java
Author: scottbw
Date: Wed Dec 16 12:24:57 2009
New Revision: 891214
URL: http://svn.apache.org/viewvc?rev=891214&view=rev
Log:
Encode test URL string - as on Tomcat this would result in a 505 error.
Modified:
incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java
Modified: incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java
URL: http://svn.apache.org/viewvc/incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java?rev=891214&r1=891213&r2=891214&view=diff
==============================================================================
--- incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java (original)
+++ incubator/wookie/trunk/src-tests/org/apache/wookie/tests/functional/PropertiesControllerTest.java Wed Dec 16 12:24:57 2009
@@ -195,7 +195,7 @@
try {
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(TEST_PROPERTIES_SERVICE_URL_VALID);
- post.setQueryString("api_key="+API_KEY_VALID+"&widgetid="+WIDGET_ID_VALID+"&userid=test&is_public=true&shareddatakey=propstest&propertyname= &propertyvalue=garfield");
+ post.setQueryString("api_key="+API_KEY_VALID+"&widgetid="+WIDGET_ID_VALID+"&userid=test&is_public=true&shareddatakey=propstest&propertyname=%20%20&propertyvalue=garfield");
client.executeMethod(post);
int code = post.getStatusCode();
assertEquals(400,code);