()
| 426 | } |
| 427 | |
| 428 | public void testRemoveTemporaries() throws Exception { |
| 429 | File dir = Native.getTempDir(); |
| 430 | File tmp = new File(dir, Native.JNA_TMPLIB_PREFIX); |
| 431 | tmp.delete(); |
| 432 | try { |
| 433 | assertTrue("Couldn't create temporary file " + tmp, tmp.createNewFile()); |
| 434 | assertTrue("File isn't recognized as unpacked", Native.isUnpacked(tmp)); |
| 435 | Native.markTemporaryFile(tmp); |
| 436 | Native.removeTemporaryFiles(); |
| 437 | assertFalse("Temporary file still exists", tmp.exists()); |
| 438 | } |
| 439 | finally { |
| 440 | tmp.delete(); |
| 441 | } |
| 442 | } |
| 443 | |
| 444 | private static final String NUL = "\0"; |
| 445 | public void testStringConversion() { |
nothing calls this directly
no test coverage detected