@Test public void testOnParamChange() { presenter.setParamChangeHandler(changeHandler); presenter.onParamChange(PARAM_NAME, NEW_VALUE, OLD_VALUE); verify(changeHandler, times(1)).onParamChange(PARAM_NAME, NEW_VALUE, OLD_VALUE); }
protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } }
TemplateParamsTablePresenter { protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } } }
TemplateParamsTablePresenter { protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } } @Inject  TemplateParamsTablePresenter(final View view); }
TemplateParamsTablePresenter { protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } } @Inject  TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> items); void clear(); View getView(); void setParamChangeHandler(final ParamChangeHandler paramChangeHandler); }
TemplateParamsTablePresenter { protected void onParamChange(final String paramName, final String newValue, final String oldValue) { if (paramChangeHandler != null) { paramChangeHandler.onParamChange(paramName, newValue, oldValue); } } @Inject  TemplateParamsTablePresenter(final View view); @PostConstruct void init(); void setItems(final List<TemplateParam> items); void clear(); View getView(); void setParamChangeHandler(final ParamChangeHandler paramChangeHandler);  }