@Test public void shouldThrowExceptionOnLoadIfNotAJar() throws IOException { final File fake = temporaryFolder.newFile("fake-file"); assertThatThrownBy(() -> jarRepository.load(fake.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; }