()
| 53 | } |
| 54 | |
| 55 | public void testSetNativeLong() { |
| 56 | Memory m = new Memory(8); |
| 57 | if (NativeLong.SIZE == 4) { |
| 58 | final int MAGIC = 0xABEDCF23; |
| 59 | m.setNativeLong(0, new NativeLong(MAGIC)); |
| 60 | assertEquals("Native long mismatch", MAGIC, m.getInt(0)); |
| 61 | } else { |
| 62 | final long MAGIC = 0x1234567887654321L; |
| 63 | m.setNativeLong(0, new NativeLong(MAGIC)); |
| 64 | assertEquals("Native long mismatch", MAGIC, m.getLong(0)); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | public void testGetSetStringWithDefaultEncoding() throws Exception { |
| 69 | final String ENCODING = Native.DEFAULT_ENCODING; |
nothing calls this directly
no test coverage detected