@Test public void testNoData() { DisplayerSettings dateSelectorSettings = DisplayerSettingsFactory.newSelectorSettings() .dataset(EXPENSES) .filter(COLUMN_DATE, FilterFactory.isNull()) .column(COLUMN_DATE) .buildSettings(); SelectorSliderDisplayer presenter = createSelectorDisplayer(dateSelectorSettings); SelectorSliderDisplayer.View view = presenter.getView(); presenter.draw(); verify(view).noData(); verify(view, never()).showSlider(anyInt(), anyInt(), anyInt(), anyInt(), anyInt()); }
@Override public View getView() { return view; }
SelectorSliderDisplayer extends AbstractGwtDisplayer<SelectorSliderDisplayer.View> { @Override public View getView() { return view; } }
SelectorSliderDisplayer extends AbstractGwtDisplayer<SelectorSliderDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorSliderDisplayer(View view, DateParameterEditor minDateEditor,
                                   DateParameterEditor maxDateEditor,
                                   NumberParameterEditor minNumberEditor,
                                   NumberParameterEditor maxNumberEditor); }
SelectorSliderDisplayer extends AbstractGwtDisplayer<SelectorSliderDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorSliderDisplayer(View view, DateParameterEditor minDateEditor,
                                   DateParameterEditor maxDateEditor,
                                   NumberParameterEditor minNumberEditor,
                                   NumberParameterEditor maxNumberEditor); @Override View getView(); @Override DisplayerConstraints createDisplayerConstraints(); Object getSelectedMin(); Object getSelectedMax(); }
SelectorSliderDisplayer extends AbstractGwtDisplayer<SelectorSliderDisplayer.View> { @Override public View getView() { return view; } @Inject  SelectorSliderDisplayer(View view, DateParameterEditor minDateEditor,
                                   DateParameterEditor maxDateEditor,
                                   NumberParameterEditor minNumberEditor,
                                   NumberParameterEditor maxNumberEditor); @Override View getView(); @Override DisplayerConstraints createDisplayerConstraints(); Object getSelectedMin(); Object getSelectedMax();  }