@Test public void shouldLoadCurrentTest() throws Exception { final String binaryName = getClass().getCanonicalName(); final ClassLoader loader = uut.getTargetClassLoader(); final Class<?> clazz = loader.loadClass(binaryName); assertThat(clazz, notNullValue()); }
@Override public URLClassLoader getTargetClassLoader() throws Exception { final List<URL> urls = new ArrayList<>(); for (final String path : classpathElements) { urls.add(new File(path).toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[urls.size()]), MavenColaProvider.class.getClassLoader()); }
MavenColaProvider implements IColaProvider { @Override public URLClassLoader getTargetClassLoader() throws Exception { final List<URL> urls = new ArrayList<>(); for (final String path : classpathElements) { urls.add(new File(path).toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[urls.size()]), MavenColaProvider.class.getClassLoader()); } }
MavenColaProvider implements IColaProvider { @Override public URLClassLoader getTargetClassLoader() throws Exception { final List<URL> urls = new ArrayList<>(); for (final String path : classpathElements) { urls.add(new File(path).toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[urls.size()]), MavenColaProvider.class.getClassLoader()); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); }
MavenColaProvider implements IColaProvider { @Override public URLClassLoader getTargetClassLoader() throws Exception { final List<URL> urls = new ArrayList<>(); for (final String path : classpathElements) { urls.add(new File(path).toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[urls.size()]), MavenColaProvider.class.getClassLoader()); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); @Override String getTargetDirectory(); @Override URLClassLoader getTargetClassLoader(); @Override List<String> getTargetClasses(); }
MavenColaProvider implements IColaProvider { @Override public URLClassLoader getTargetClassLoader() throws Exception { final List<URL> urls = new ArrayList<>(); for (final String path : classpathElements) { urls.add(new File(path).toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[urls.size()]), MavenColaProvider.class.getClassLoader()); } MavenColaProvider(final String targetDirectory, final List<String> classpathElements,
        final String[] includes, final String[] excludes, final List<String> deltas); @Override String getTargetDirectory(); @Override URLClassLoader getTargetClassLoader(); @Override List<String> getTargetClasses();  }