@Test public void setupTest() { doReturn(promises.resolve()).when(archetypeTablePresenter).setup(eq(false), any()); presenter.setup(any(SpaceScreenModel.class)); verify(view).init(presenter); }
@Override public Promise<Void> setup(final SpaceScreenModel model) { this.view.init(this); return archetypeTablePresenter.setup(false, this::fireChangeEvent).then(v -> { view.showDescription(!archetypeTablePresenter.isEmpty()); view.setTable(archetypeTablePresenter.getView().getElement()); return promises.resolve(); }); }
ArchetypesSectionPresenter extends Section<SpaceScreenModel> { @Override public Promise<Void> setup(final SpaceScreenModel model) { this.view.init(this); return archetypeTablePresenter.setup(false, this::fireChangeEvent).then(v -> { view.showDescription(!archetypeTablePresenter.isEmpty()); view.setTable(archetypeTablePresenter.getView().getElement()); return promises.resolve(); }); } }
ArchetypesSectionPresenter extends Section<SpaceScreenModel> { @Override public Promise<Void> setup(final SpaceScreenModel model) { this.view.init(this); return archetypeTablePresenter.setup(false, this::fireChangeEvent).then(v -> { view.showDescription(!archetypeTablePresenter.isEmpty()); view.setTable(archetypeTablePresenter.getView().getElement()); return promises.resolve(); }); } @Inject  ArchetypesSectionPresenter(final Event<SettingsSectionChange<SpaceScreenModel>> settingsSectionChangeEvent,
                                      final MenuItem<SpaceScreenModel> menuItem,
                                      final Promises promises,
                                      final View view,
                                      final @SpaceSettings ArchetypeTablePresenter archetypeTablePresenter,
                                      final Event<NotificationEvent> notificationEvent,
                                      final TranslationService ts); }
ArchetypesSectionPresenter extends Section<SpaceScreenModel> { @Override public Promise<Void> setup(final SpaceScreenModel model) { this.view.init(this); return archetypeTablePresenter.setup(false, this::fireChangeEvent).then(v -> { view.showDescription(!archetypeTablePresenter.isEmpty()); view.setTable(archetypeTablePresenter.getView().getElement()); return promises.resolve(); }); } @Inject  ArchetypesSectionPresenter(final Event<SettingsSectionChange<SpaceScreenModel>> settingsSectionChangeEvent,
                                      final MenuItem<SpaceScreenModel> menuItem,
                                      final Promises promises,
                                      final View view,
                                      final @SpaceSettings ArchetypeTablePresenter archetypeTablePresenter,
                                      final Event<NotificationEvent> notificationEvent,
                                      final TranslationService ts); void onArchetypeListUpdatedEvent(@Observes final ArchetypeListUpdatedEvent event); @Override Promise<Void> setup(final SpaceScreenModel model); @Override Promise<Void> save(final String comment,
                              final Supplier<Promise<Void>> chain); @Override SectionView<?> getView(); @Override int currentHashCode(); }
ArchetypesSectionPresenter extends Section<SpaceScreenModel> { @Override public Promise<Void> setup(final SpaceScreenModel model) { this.view.init(this); return archetypeTablePresenter.setup(false, this::fireChangeEvent).then(v -> { view.showDescription(!archetypeTablePresenter.isEmpty()); view.setTable(archetypeTablePresenter.getView().getElement()); return promises.resolve(); }); } @Inject  ArchetypesSectionPresenter(final Event<SettingsSectionChange<SpaceScreenModel>> settingsSectionChangeEvent,
                                      final MenuItem<SpaceScreenModel> menuItem,
                                      final Promises promises,
                                      final View view,
                                      final @SpaceSettings ArchetypeTablePresenter archetypeTablePresenter,
                                      final Event<NotificationEvent> notificationEvent,
                                      final TranslationService ts); void onArchetypeListUpdatedEvent(@Observes final ArchetypeListUpdatedEvent event); @Override Promise<Void> setup(final SpaceScreenModel model); @Override Promise<Void> save(final String comment,
                              final Supplier<Promise<Void>> chain); @Override SectionView<?> getView(); @Override int currentHashCode();  }