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

Method testSetNativeMapped

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

Source from the content-addressed store, hash-verified

89 }
90
91 public void testSetNativeMapped() {
92 Pointer p = new Memory(Native.POINTER_SIZE);
93 TestPointerType tp = new TestPointerType(p);
94
95 p.setValue(0, tp, tp.getClass());
96
97 assertEquals("Wrong value written", p, p.getPointer(0));
98 }
99
100 public void testGetNativeMapped() {
101 Pointer p = new Memory(Native.POINTER_SIZE);

Callers

nothing calls this directly

Calls 2

getPointerMethod · 0.95
setValueMethod · 0.65

Tested by

no test coverage detected