@Test public void testSetup() { includedKnowledgeBaseItemPresenter.setup(new SingleValueItemObjectModel("Name"), mock(KnowledgeBaseItemPresenter.class)); verify(view).init(eq(includedKnowledgeBaseItemPresenter)); verify(view).setName(eq("Name")); }
@Override public IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName, final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; this.knowledgeBaseNameObject = knowledgeBaseName; view.init(this); view.setName(knowledgeBaseNameObject.getValue()); return this; }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName, final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; this.knowledgeBaseNameObject = knowledgeBaseName; view.init(this); view.setName(knowledgeBaseNameObject.getValue()); return this; } }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName, final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; this.knowledgeBaseNameObject = knowledgeBaseName; view.init(this); view.setName(knowledgeBaseNameObject.getValue()); return this; } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName, final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; this.knowledgeBaseNameObject = knowledgeBaseName; view.init(this); view.setName(knowledgeBaseNameObject.getValue()); return this; } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); @Override IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName,
                                                    final KnowledgeBaseItemPresenter parentPresenter); @Override SingleValueItemObjectModel getObject(); @Override void remove(); void onKnowledgeBaseNamChange(final String name); }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName, final KnowledgeBaseItemPresenter parentPresenter) { this.parentPresenter = parentPresenter; this.knowledgeBaseNameObject = knowledgeBaseName; view.init(this); view.setName(knowledgeBaseNameObject.getValue()); return this; } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); @Override IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName,
                                                    final KnowledgeBaseItemPresenter parentPresenter); @Override SingleValueItemObjectModel getObject(); @Override void remove(); void onKnowledgeBaseNamChange(final String name);  }