@Test public void testSetPipelineParamsForm() { IsElement formView = mock(IsElement.class); when(paramsForm.getView()).thenReturn(formView); presenter.setPipelineParamsForm(paramsForm); verify(view, times(1)).setForm(formView); verify(paramsForm, times(1)).addContentChangeHandler(any(ContentChangeHandler.class)); }
public void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm) { this.pipelineParamsForm = pipelineParamsForm; this.view.setForm(pipelineParamsForm.getView()); pipelineParamsForm.addContentChangeHandler(this::onContentChanged); }
PipelineParamsPagePresenter implements WizardPage { public void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm) { this.pipelineParamsForm = pipelineParamsForm; this.view.setForm(pipelineParamsForm.getView()); pipelineParamsForm.addContentChangeHandler(this::onContentChanged); } }
PipelineParamsPagePresenter implements WizardPage { public void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm) { this.pipelineParamsForm = pipelineParamsForm; this.view.setForm(pipelineParamsForm.getView()); pipelineParamsForm.addContentChangeHandler(this::onContentChanged); } @Inject  PipelineParamsPagePresenter(final View view,
                                       final Event<WizardPageStatusChangeEvent> wizardPageStatusChangeEvent); }
PipelineParamsPagePresenter implements WizardPage { public void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm) { this.pipelineParamsForm = pipelineParamsForm; this.view.setForm(pipelineParamsForm.getView()); pipelineParamsForm.addContentChangeHandler(this::onContentChanged); } @Inject  PipelineParamsPagePresenter(final View view,
                                       final Event<WizardPageStatusChangeEvent> wizardPageStatusChangeEvent); @PostConstruct void init(); void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm); @Override void initialise(); @Override void prepareView(); @Override void isComplete(final Callback<Boolean> callback); @Override String getTitle(); @Override Widget asWidget(); }
PipelineParamsPagePresenter implements WizardPage { public void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm) { this.pipelineParamsForm = pipelineParamsForm; this.view.setForm(pipelineParamsForm.getView()); pipelineParamsForm.addContentChangeHandler(this::onContentChanged); } @Inject  PipelineParamsPagePresenter(final View view,
                                       final Event<WizardPageStatusChangeEvent> wizardPageStatusChangeEvent); @PostConstruct void init(); void setPipelineParamsForm(final PipelineParamsForm pipelineParamsForm); @Override void initialise(); @Override void prepareView(); @Override void isComplete(final Callback<Boolean> callback); @Override String getTitle(); @Override Widget asWidget();  }