()
| 464 | } |
| 465 | |
| 466 | public void testGetBytes() throws Exception { |
| 467 | byte[] buf = Native.getBytes(getName() + UNICODE, "utf8"); |
| 468 | assertEquals("Incorrect native bytes from Java String", getName() + UNICODE, new String(buf, "utf8")); |
| 469 | } |
| 470 | |
| 471 | public void testGetBytesWithCharset() throws Exception { |
| 472 | final Charset CHARSET_UTF8 = Charset.forName("UTF-8"); |