@Test void testClassLoader() { ClassLoader classLoader = mock(ClassLoader.class); Plugin p = new Plugin(null, classLoader, null); assertThat("Wrong class loader", p.getClassLoader(), is(theInstance(classLoader))); }
@Override public ClassLoader getClassLoader() { return this.classLoader; }
Plugin implements IPlugin { @Override public ClassLoader getClassLoader() { return this.classLoader; } }
Plugin implements IPlugin { @Override public ClassLoader getClassLoader() { return this.classLoader; } Plugin(Path path, ClassLoader classLoader, Manifest manifest); }
Plugin implements IPlugin { @Override public ClassLoader getClassLoader() { return this.classLoader; } Plugin(Path path, ClassLoader classLoader, Manifest manifest); @Override Path getPath(); @Override ClassLoader getClassLoader(); @Override String getUniqueName(); @Override String getDisplayName(); @Override String getVersion(); @Override String getDescription(); @Override Manifest getManifest(); }
Plugin implements IPlugin { @Override public ClassLoader getClassLoader() { return this.classLoader; } Plugin(Path path, ClassLoader classLoader, Manifest manifest); @Override Path getPath(); @Override ClassLoader getClassLoader(); @Override String getUniqueName(); @Override String getDisplayName(); @Override String getVersion(); @Override String getDescription(); @Override Manifest getManifest();  }