Commit 880d8d2f authored by Narayan Kamath's avatar Narayan Kamath Committed by Gerrit Code Review
Browse files

Merge "Fix an OutputStreamWriterTest test case."

parents 014a9c67 418e036b
......@@ -17,6 +17,7 @@
package org.apache.harmony.tests.java.io;
import junit.framework.TestCase;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
......@@ -30,8 +31,6 @@ import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.nio.charset.CharsetEncoder;
import junit.framework.TestCase;
public class OutputStreamWriterTest extends TestCase {
private static final int UPPER = 0xd800;
......@@ -630,7 +629,8 @@ public class OutputStreamWriterTest extends TestCase {
}
/**
* java.io.OutputStreamWriter#getEncoding()
* Unlike the RI, we return canonical encoding name and not something
* java specific.
*/
public void test_getEncoding() throws IOException {
try {
......@@ -655,7 +655,7 @@ public class OutputStreamWriterTest extends TestCase {
// ok
}
result = out.getEncoding();
assertEquals("UnicodeBigUnmarked", result);
assertEquals("UTF-16BE", result);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment