You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ni...@apache.org on 2010/10/18 01:20:56 UTC

svn commit: r1023596 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java

Author: niallp
Date: Sun Oct 17 23:20:56 2010
New Revision: 1023596

URL: http://svn.apache.org/viewvc?rev=1023596&view=rev
Log:
IO-253 add "buffered" test for UTF-16 and new tests for UTF-16BE and UTF-16LE

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java?rev=1023596&r1=1023595&r2=1023596&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java (original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/output/WriterOutputStreamTest.java Sun Oct 17 23:20:56 2010
@@ -80,6 +80,27 @@ public class WriterOutputStreamTest exte
     public void testUTF16WithSingleByteWrite() throws IOException {
         testWithSingleByteWrite(TEST_STRING, "UTF-16");
     }
+
+    public void testLargeUTF16WithBufferedWrite() throws IOException {
+        testWithBufferedWrite(LARGE_TEST_STRING, "UTF-16");
+    }
+
+    public void testUTF16BEWithSingleByteWrite() throws IOException {
+        testWithSingleByteWrite(TEST_STRING, "UTF-16BE");
+    }
+
+    public void testLargeUTF16BEWithBufferedWrite() throws IOException {
+        testWithBufferedWrite(LARGE_TEST_STRING, "UTF-16BE");
+    }
+
+    public void testUTF16LEWithSingleByteWrite() throws IOException {
+        testWithSingleByteWrite(TEST_STRING, "UTF-16LE");
+    }
+
+    public void testLargeUTF16LEWithBufferedWrite() throws IOException {
+        testWithBufferedWrite(LARGE_TEST_STRING, "UTF-16LE");
+    }
+
     
     public void testFlush() throws IOException {
         StringWriter writer = new StringWriter();