@Test public void setBranchTest() { presenter.setBranch("otherBranch"); assertEquals("otherBranch", presenter.selectedBranch); verify(presenter).fireChangeEvent(); }
void setBranch(final String branchName) { selectedBranch = branchName; setup(branchName); fireChangeEvent(); }
BranchManagementPresenter extends Section<ProjectScreenModel> { void setBranch(final String branchName) { selectedBranch = branchName; setup(branchName); fireChangeEvent(); } }
BranchManagementPresenter extends Section<ProjectScreenModel> { void setBranch(final String branchName) { selectedBranch = branchName; setup(branchName); fireChangeEvent(); } @Inject  BranchManagementPresenter(final View view,
                                     final Promises promises,
                                     final MenuItem<ProjectScreenModel> menuItem,
                                     final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                     final Caller<LibraryService> libraryService,
                                     final LibraryPlaces libraryPlaces,
                                     final RoleAccessListPresenter roleAccessListPresenter,
                                     final ProjectController projectController); }
BranchManagementPresenter extends Section<ProjectScreenModel> { void setBranch(final String branchName) { selectedBranch = branchName; setup(branchName); fireChangeEvent(); } @Inject  BranchManagementPresenter(final View view,
                                     final Promises promises,
                                     final MenuItem<ProjectScreenModel> menuItem,
                                     final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                     final Caller<LibraryService> libraryService,
                                     final LibraryPlaces libraryPlaces,
                                     final RoleAccessListPresenter roleAccessListPresenter,
                                     final ProjectController projectController); @Override Promise<Void> setup(final ProjectScreenModel model); @Override Promise<Object> validate(); @Override Promise<Void> save(final String comment,
                              final Supplier<Promise<Void>> chain); @Override int currentHashCode(); @Override SectionView<?> getView(); }
BranchManagementPresenter extends Section<ProjectScreenModel> { void setBranch(final String branchName) { selectedBranch = branchName; setup(branchName); fireChangeEvent(); } @Inject  BranchManagementPresenter(final View view,
                                     final Promises promises,
                                     final MenuItem<ProjectScreenModel> menuItem,
                                     final Event<SettingsSectionChange<ProjectScreenModel>> settingsSectionChangeEvent,
                                     final Caller<LibraryService> libraryService,
                                     final LibraryPlaces libraryPlaces,
                                     final RoleAccessListPresenter roleAccessListPresenter,
                                     final ProjectController projectController); @Override Promise<Void> setup(final ProjectScreenModel model); @Override Promise<Object> validate(); @Override Promise<Void> save(final String comment,
                              final Supplier<Promise<Void>> chain); @Override int currentHashCode(); @Override SectionView<?> getView();  }