UTF8CharsetTestpublic class UTF8CharsetTest extends AbstractCharsetTestCase
Constructors Summary |
---|
public UTF8CharsetTest()Constructor for UTF8CharsetTest.
super("UTF-8", new String[] { "UTF8" }, true, true);
|
Methods Summary |
---|
public void | testDecode_Normal()
byte[] input = new byte[] { 97, 98, -27, -76, -108, -26, -107, -113 };
char[] output = "ab\u5D14\u654F".toCharArray();
internalTestDecode(input, output);
| public void | testEncode_Normal()
String input = "ab\u5D14\u654F";
byte[] output = new byte[] { 97, 98, -27, -76, -108, -26, -107, -113 };
internalTestEncode(input, output);
|
|