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

Method testGetBytesBadEncoding

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

Source from the content-addressed store, hash-verified

475 }
476
477 public void testGetBytesBadEncoding() throws Exception {
478 byte[] buf = Native.getBytes(getName(), "unsupported");
479 assertEquals("Incorrect fallback bytes with bad encoding",
480 getName(), new String(buf, Charset.defaultCharset().name()));
481 }
482
483 public void testFindDirectMappedClassFailure() {
484 try {

Callers

nothing calls this directly

Calls 2

getBytesMethod · 0.95
getNameMethod · 0.65

Tested by

no test coverage detected