@Test public void testSetup() { persistableDataObjectsItemPresenter.setup(new PersistableDataObject("ClassName"), mock(PersistencePresenter.class)); verify(view).init(eq(persistableDataObjectsItemPresenter)); verify(view).setClassName(eq("ClassName")); }
public PersistableDataObjectsItemPresenter setup(final PersistableDataObject className, final PersistencePresenter parentPresenter) { this.parentPresenter = parentPresenter; this.persistableDataObjects = className; view.init(this); view.setClassName(className.getValue()); return this; }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public PersistableDataObjectsItemPresenter setup(final PersistableDataObject className, final PersistencePresenter parentPresenter) { this.parentPresenter = parentPresenter; this.persistableDataObjects = className; view.init(this); view.setClassName(className.getValue()); return this; } }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public PersistableDataObjectsItemPresenter setup(final PersistableDataObject className, final PersistencePresenter parentPresenter) { this.parentPresenter = parentPresenter; this.persistableDataObjects = className; view.init(this); view.setClassName(className.getValue()); return this; } @Inject  PersistableDataObjectsItemPresenter(final View view); }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public PersistableDataObjectsItemPresenter setup(final PersistableDataObject className, final PersistencePresenter parentPresenter) { this.parentPresenter = parentPresenter; this.persistableDataObjects = className; view.init(this); view.setClassName(className.getValue()); return this; } @Inject  PersistableDataObjectsItemPresenter(final View view); PersistableDataObjectsItemPresenter setup(final PersistableDataObject className,
                                                     final PersistencePresenter parentPresenter); void onClassNameChange(final String className); @Override PersistableDataObject getObject(); void remove(); View getView(); }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public PersistableDataObjectsItemPresenter setup(final PersistableDataObject className, final PersistencePresenter parentPresenter) { this.parentPresenter = parentPresenter; this.persistableDataObjects = className; view.init(this); view.setClassName(className.getValue()); return this; } @Inject  PersistableDataObjectsItemPresenter(final View view); PersistableDataObjectsItemPresenter setup(final PersistableDataObject className,
                                                     final PersistencePresenter parentPresenter); void onClassNameChange(final String className); @Override PersistableDataObject getObject(); void remove(); View getView();  }