Author: nfilotto
Date: 2011-04-15 14:02:47 -0400 (Fri, 15 Apr 2011)
New Revision: 4239
Modified:
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestSearch.java
Log:
EXOJCR-1307: Failing tests in the webdav project due to an encoding issue
Modified:
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java 2011-04-15
13:26:15 UTC (rev 4238)
+++
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestPropFind.java 2011-04-15
18:02:47 UTC (rev 4239)
@@ -150,7 +150,7 @@
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PropFindResponseEntity entity = (PropFindResponseEntity)response.getEntity();
entity.write(outputStream);
- String resp = outputStream.toString();
+ String resp = outputStream.toString("UTF-8");
System.out.println("=======PropFind response==========");
System.out.println(resp);
Modified:
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestSearch.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestSearch.java 2011-04-15
13:26:15 UTC (rev 4238)
+++
jcr/trunk/exo.jcr.component.webdav/src/test/java/org/exoplatform/services/jcr/webdav/command/TestSearch.java 2011-04-15
18:02:47 UTC (rev 4239)
@@ -92,7 +92,7 @@
SearchResultResponseEntity entity =
(SearchResultResponseEntity)response.getEntity();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
entity.write(outputStream);
- String resp = outputStream.toString();
+ String resp = outputStream.toString("UTF-8");
System.out.println("=======Search response============");
System.out.println(resp);
Show replies by date