@Test public void testAdd() { dependenciesPresenter.addNewDependency(); verify(enhancedDependenciesManager).addNew(new Dependency()); verify(settingsSectionChangeEvent).fire(any()); }
void add(final Dependency dependency) { enhancedDependenciesManager.addNew(dependency); }
DependenciesPresenter extends Section<ProjectScreenModel> { void add(final Dependency dependency) { enhancedDependenciesManager.addNew(dependency); } }
DependenciesPresenter extends Section<ProjectScreenModel> { void add(final Dependency dependency) { enhancedDependenciesManager.addNew(dependency); } @Inject  DependenciesPresenter(final View view,
                                 final Promises promises,
                                 final MenuItem<ProjectScreenModel> menuItem,
                                 final DependencySelectorPopup dependencySelectorPopup,
                                 final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                 final EnhancedDependenciesManager enhancedDependenciesManager,
                                 final ManagedInstance<DependenciesItemPresenter> presenters); }
DependenciesPresenter extends Section<ProjectScreenModel> { void add(final Dependency dependency) { enhancedDependenciesManager.addNew(dependency); } @Inject  DependenciesPresenter(final View view,
                                 final Promises promises,
                                 final MenuItem<ProjectScreenModel> menuItem,
                                 final DependencySelectorPopup dependencySelectorPopup,
                                 final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                 final EnhancedDependenciesManager enhancedDependenciesManager,
                                 final ManagedInstance<DependenciesItemPresenter> presenters); @Override Promise<Void> setup(final ProjectScreenModel model); @Override Promise<Object> validate(); void addNewDependency(); void addAllToWhiteList(final Set<String> packages); void removeAllFromWhiteList(final Set<String> packages); void addFromRepository(); void remove(final EnhancedDependency enhancedDependency); @Override int currentHashCode(); @Override SectionView<?> getView(); }
DependenciesPresenter extends Section<ProjectScreenModel> { void add(final Dependency dependency) { enhancedDependenciesManager.addNew(dependency); } @Inject  DependenciesPresenter(final View view,
                                 final Promises promises,
                                 final MenuItem<ProjectScreenModel> menuItem,
                                 final DependencySelectorPopup dependencySelectorPopup,
                                 final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                 final EnhancedDependenciesManager enhancedDependenciesManager,
                                 final ManagedInstance<DependenciesItemPresenter> presenters); @Override Promise<Void> setup(final ProjectScreenModel model); @Override Promise<Object> validate(); void addNewDependency(); void addAllToWhiteList(final Set<String> packages); void removeAllFromWhiteList(final Set<String> packages); void addFromRepository(); void remove(final EnhancedDependency enhancedDependency); @Override int currentHashCode(); @Override SectionView<?> getView();  }