@Test public void testNoDependencies() throws Exception { GAV gav = new GAV( "artifactID", "groupID", "version" ); Collection<Dependency> dependencies = service.loadDependencies( gav ); assertTrue( dependencies.isEmpty() ); }
@Override public Collection<Dependency> loadDependencies(final Collection<GAV> gavs) { final ArrayList<Dependency> dependencies = new ArrayList<Dependency>(); for (final GAV gav : gavs) { dependencies.addAll(loadDependencies(gav)); } return dependencies; }
DependencyServiceImpl implements DependencyService { @Override public Collection<Dependency> loadDependencies(final Collection<GAV> gavs) { final ArrayList<Dependency> dependencies = new ArrayList<Dependency>(); for (final GAV gav : gavs) { dependencies.addAll(loadDependencies(gav)); } return dependencies; } }
DependencyServiceImpl implements DependencyService { @Override public Collection<Dependency> loadDependencies(final Collection<GAV> gavs) { final ArrayList<Dependency> dependencies = new ArrayList<Dependency>(); for (final GAV gav : gavs) { dependencies.addAll(loadDependencies(gav)); } return dependencies; } DependencyServiceImpl(); }
DependencyServiceImpl implements DependencyService { @Override public Collection<Dependency> loadDependencies(final Collection<GAV> gavs) { final ArrayList<Dependency> dependencies = new ArrayList<Dependency>(); for (final GAV gav : gavs) { dependencies.addAll(loadDependencies(gav)); } return dependencies; } DependencyServiceImpl(); @Override Collection<Dependency> loadDependencies(final Collection<GAV> gavs); @Override Collection<Dependency> loadDependencies(final GAV gav); @Override Set<String> loadPackageNames(final GAV gav); @Override EnhancedDependencies loadEnhancedDependencies(final Collection<Dependency> dependencies); }
DependencyServiceImpl implements DependencyService { @Override public Collection<Dependency> loadDependencies(final Collection<GAV> gavs) { final ArrayList<Dependency> dependencies = new ArrayList<Dependency>(); for (final GAV gav : gavs) { dependencies.addAll(loadDependencies(gav)); } return dependencies; } DependencyServiceImpl(); @Override Collection<Dependency> loadDependencies(final Collection<GAV> gavs); @Override Collection<Dependency> loadDependencies(final GAV gav); @Override Set<String> loadPackageNames(final GAV gav); @Override EnhancedDependencies loadEnhancedDependencies(final Collection<Dependency> dependencies);  }