()
| 77 | } |
| 78 | |
| 79 | protected void assertLibraryExists() { |
| 80 | String osPrefix = Platform.getNativeLibraryResourcePrefix(); |
| 81 | String name = System.mapLibraryName("jnidispatch").replace(".dylib", ".jnilib"); |
| 82 | if(Platform.isAIX()) { |
| 83 | name = name.replaceAll(".so$", ".a"); |
| 84 | } |
| 85 | File lib = new File(CLASSES + "/com/sun/jna/" + osPrefix + "/" + name); |
| 86 | if (!lib.exists()) { |
| 87 | throw new Error("Expected JNA library at " + lib + " is missing"); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | public void testAvoidJarUnpacking() throws Exception { |
| 92 | System.setProperty("jna.nounpack", "true"); |
no test coverage detected