@Test @Ignore public void shouldThrowExceptionOnLoadIfNotReadable() throws Exception { final File dummy = temporaryFolder.newFile("unreadable.jar"); assumeTrue(dummy.setReadable(false)); assertThatThrownBy(() -> jarRepository.load(dummy.getAbsolutePath())) .isInstanceOf(ExporterJarLoadException.class); }
public ExporterJarClassLoader load(final String jarPath) throws ExporterJarLoadException { return load(Paths.get(jarPath)); }
ExporterJarRepository { public ExporterJarClassLoader load(final String jarPath) throws ExporterJarLoadException { return load(Paths.get(jarPath)); } }
ExporterJarRepository { public ExporterJarClassLoader load(final String jarPath) throws ExporterJarLoadException { return load(Paths.get(jarPath)); } ExporterJarRepository();  ExporterJarRepository(final Map<Path, ExporterJarClassLoader> loadedJars); }
ExporterJarRepository { public ExporterJarClassLoader load(final String jarPath) throws ExporterJarLoadException { return load(Paths.get(jarPath)); } ExporterJarRepository();  ExporterJarRepository(final Map<Path, ExporterJarClassLoader> loadedJars); Map<Path, ExporterJarClassLoader> getJars(); ExporterJarClassLoader remove(final String jarPath); ExporterJarClassLoader remove(final Path jarPath); ExporterJarClassLoader load(final String jarPath); ExporterJarClassLoader load(final Path jarPath); }
ExporterJarRepository { public ExporterJarClassLoader load(final String jarPath) throws ExporterJarLoadException { return load(Paths.get(jarPath)); } ExporterJarRepository();  ExporterJarRepository(final Map<Path, ExporterJarClassLoader> loadedJars); Map<Path, ExporterJarClassLoader> getJars(); ExporterJarClassLoader remove(final String jarPath); ExporterJarClassLoader remove(final Path jarPath); ExporterJarClassLoader load(final String jarPath); ExporterJarClassLoader load(final Path jarPath); static final String JAR_EXTENSION; }