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

Method TestLoader

test/com/sun/jna/JNALoadTest.java:44–56  ·  view source on GitHub ↗
(boolean fromJar)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

isWindowsCEMethod · 0.95
assertJarExistsMethod · 0.80
assertLibraryExistsMethod · 0.80

Tested by

no test coverage detected