RemoteableClassListItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, DeploymentsRemoteableClassesPresenter, RemoteableClassListItemPresenter.View> { @Override public RemoteableClassListItemPresenter setup(final SingleValueItemObjectModel remoteableClass, final DeploymentsRemoteableClassesPresenter parentPresenter) { this.remoteableClass = remoteableClass; this.parentPresenter = parentPresenter; view.init(this); view.setClass(remoteableClass.getValue()); return this; } @Inject  RemoteableClassListItemPresenter(final View view); @Override RemoteableClassListItemPresenter setup(final SingleValueItemObjectModel remoteableClass,
                                                  final DeploymentsRemoteableClassesPresenter parentPresenter); @Override void remove(); void onClassNameChange(final String className); @Override SingleValueItemObjectModel getObject();  }
@Test public void testSetup() { remoteableClassListItemPresenter.setup(new SingleValueItemObjectModel("Class"), mock(DeploymentsRemoteableClassesPresenter.class)); verify(view).init(eq(remoteableClassListItemPresenter)); verify(view).setClass(eq("Class")); }