@Test public void testAdd() throws Exception { final Dependency dependency = makeDependency( "artifactId", "groupId", "1.0" ); enhancedDependenciesManager.addNew( dependency ); verify( dependencyLoader ).load(); assertEquals( 1, originalSetOfDependencies.size() ); }
public void addNew(final Dependency dependency) { originalSetOfDependencies.add(dependency); loader.addToQueue(dependency); update(); }
EnhancedDependenciesManager { public void addNew(final Dependency dependency) { originalSetOfDependencies.add(dependency); loader.addToQueue(dependency); update(); } }
EnhancedDependenciesManager { public void addNew(final Dependency dependency) { originalSetOfDependencies.add(dependency); loader.addToQueue(dependency); update(); } @Inject  EnhancedDependenciesManager(final DependencyLoader loader); }
EnhancedDependenciesManager { public void addNew(final Dependency dependency) { originalSetOfDependencies.add(dependency); loader.addToQueue(dependency); update(); } @Inject  EnhancedDependenciesManager(final DependencyLoader loader); void init(final POM pom,
                     final Callback<EnhancedDependencies> callback); void update(); void delete(final EnhancedDependency enhancedDependency); void addNew(final Dependency dependency); void validateDependency(); }
EnhancedDependenciesManager { public void addNew(final Dependency dependency) { originalSetOfDependencies.add(dependency); loader.addToQueue(dependency); update(); } @Inject  EnhancedDependenciesManager(final DependencyLoader loader); void init(final POM pom,
                     final Callback<EnhancedDependencies> callback); void update(); void delete(final EnhancedDependency enhancedDependency); void addNew(final Dependency dependency); void validateDependency();  }