abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r663815 - /incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Date Fri, 06 Jun 2008 04:19:29 GMT
Author: jmsnell
Date: Thu Jun  5 21:19:28 2008
New Revision: 663815

URL: http://svn.apache.org/viewvc?rev=663815&view=rev
Log:
re: https://issues.apache.org/jira/browse/ABDERA-171 "Set explicit encoding on OutputStreamWriter
in FOMTest.testContent2"

Modified:
    incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java

Modified: incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java?rev=663815&r1=663814&r2=663815&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
(original)
+++ incubator/abdera/java/trunk/parser/src/test/java/org/apache/abdera/test/parser/stax/FOMTest.java
Thu Jun  5 21:19:28 2008
@@ -786,13 +786,13 @@
     entry.setContent(in,"text/plain;charset=\"utf-16\"");
     
     ByteArrayOutputStream out = new ByteArrayOutputStream();
-    OutputStreamWriter w = new OutputStreamWriter(out);
+    OutputStreamWriter w = new OutputStreamWriter(out, "utf-16");
     edoc.writeTo(w);
     
     in = new ByteArrayInputStream(out.toByteArray());
 
     entry = (Entry) abdera.getParser().parse(in).getRoot();
 
-    assertEquals(entry.getContent(),"tóst");
+    assertEquals("tóst", entry.getContent());
   }
 }



Mime
View raw message