(boolean fromJar)
| 42 | |
| 43 | private class TestLoader extends URLClassLoader { |
| 44 | public TestLoader(boolean fromJar) throws MalformedURLException { |
| 45 | super(new URL[]{ |
| 46 | Platform.isWindowsCE() |
| 47 | ? new File("/Storage Card/" + (fromJar ? "jna.jar" : "test.jar")).toURI().toURL() |
| 48 | : new File(BUILDDIR + (fromJar ? "/jna.jar" : "/classes")).toURI().toURL()}, |
| 49 | new CloverLoader()); |
| 50 | if (fromJar) { |
| 51 | assertJarExists(); |
| 52 | } |
| 53 | else { |
| 54 | assertLibraryExists(); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | @Override |
| 59 | protected Class<?> findClass(String name) throws ClassNotFoundException { |
nothing calls this directly
no test coverage detected