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

Method testNegativeAlignment

test/com/sun/jna/MemoryTest.java:106–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 public void testNegativeAlignment() {
107 final int SIZE = 128;
108 Memory base = new Memory(SIZE);
109 try {
110 base.align(-1);
111 fail("Negative alignments not allowed");
112 }
113 catch(IllegalArgumentException e) { }
114 }
115
116 public void testInvalidAlignment() {
117 final int SIZE = 128;

Callers

nothing calls this directly

Calls 1

alignMethod · 0.95

Tested by

no test coverage detected