@Test public void testSetName() { final KSessionModel kSessionModel = new KSessionModel(); final KnowledgeSessionsModal parentPresenter = mock(KnowledgeSessionsModal.class); knowledgeSessionListItemPresenter.parentPresenter = parentPresenter; knowledgeSessionListItemPresenter.kSessionModel = kSessionModel; knowledgeSessionListItemPresenter.setName("Name"); Assert.assertEquals("Name", kSessionModel.getName()); verify(parentPresenter).fireChangeEvent(); }
public void setName(final String name) { kSessionModel.setName(name); parentPresenter.fireChangeEvent(); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { public void setName(final String name) { kSessionModel.setName(name); parentPresenter.fireChangeEvent(); } }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { public void setName(final String name) { kSessionModel.setName(name); parentPresenter.fireChangeEvent(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { public void setName(final String name) { kSessionModel.setName(name); parentPresenter.fireChangeEvent(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); @Override KnowledgeSessionListItemPresenter setup(final KSessionModel kSessionModel,
                                                   final KnowledgeSessionsModal parentPresenter); @Override void remove(); @Override KSessionModel getObject(); void setName(final String name); void setType(final String type); void addListener(); void addWorkItemHandler(); void fireChangeEvent(); void closeAllExpandableListItems(); void signalWorkItemHandlerAddedOrRemoved(); void signalListenerAddedOrRemoved(); void setDefault(final boolean isDefault); void onDefaultKnowledgeSessionChanged(@Observes final DefaultKnowledgeSessionChange event); }
KnowledgeSessionListItemPresenter extends ListItemPresenter<KSessionModel, KnowledgeSessionsModal, KnowledgeSessionListItemPresenter.View> { public void setName(final String name) { kSessionModel.setName(name); parentPresenter.fireChangeEvent(); } @Inject  KnowledgeSessionListItemPresenter(final View view,
                                             final Event<DefaultKnowledgeSessionChange> defaultKnowledgeSessionChangeEvent,
                                             final WorkItemHandlersListPresenter workItemHandlersListPresenter,
                                             final ListenersListPresenter listenersListPresenter); @Override KnowledgeSessionListItemPresenter setup(final KSessionModel kSessionModel,
                                                   final KnowledgeSessionsModal parentPresenter); @Override void remove(); @Override KSessionModel getObject(); void setName(final String name); void setType(final String type); void addListener(); void addWorkItemHandler(); void fireChangeEvent(); void closeAllExpandableListItems(); void signalWorkItemHandlerAddedOrRemoved(); void signalListenerAddedOrRemoved(); void setDefault(final boolean isDefault); void onDefaultKnowledgeSessionChanged(@Observes final DefaultKnowledgeSessionChange event);  }