MCPcopy Index your code
hub / github.com/java-native-access/jna / testGetBytes

Method testGetBytes

test/com/sun/jna/NativeTest.java:466–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls 2

getBytesMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected