MCPcopy Create free account
hub / github.com/java-native-access/jna / testGetNativeMapped

Method testGetNativeMapped

test/com/sun/jna/PointerTest.java:100–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98 }
99
100 public void testGetNativeMapped() {
101 Pointer p = new Memory(Native.POINTER_SIZE);
102 p.setPointer(0, null);
103 Object o = p.getValue(0, TestPointerType.class, null);
104 assertNull("Wrong empty value: " + o, o);
105 p.setPointer(0, p);
106 TestPointerType tp = new TestPointerType(p);
107 assertEquals("Wrong value", tp, p.getValue(0, TestPointerType.class, null));
108 }
109
110 public void testGetStringArray() {
111 Pointer p = new Memory(Native.POINTER_SIZE*3);

Callers

nothing calls this directly

Calls 2

setPointerMethod · 0.95
getValueMethod · 0.65

Tested by

no test coverage detected