@Test public void testSetup() { presenter.setup(LABEL, command); verify(view, times(1)).setLabel(LABEL); presenter.onActionClick(); verify(command, times(1)).execute(); }
public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; }
RuntimeActionItemPresenter { public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; } }
RuntimeActionItemPresenter { public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; } @Inject  RuntimeActionItemPresenter(final View view); }
RuntimeActionItemPresenter { public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; } @Inject  RuntimeActionItemPresenter(final View view); @PostConstruct void init(); void setup(final String label,
                      final Command command); void setEnabled(final boolean enabled); View getView(); }
RuntimeActionItemPresenter { public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; } @Inject  RuntimeActionItemPresenter(final View view); @PostConstruct void init(); void setup(final String label,
                      final Command command); void setEnabled(final boolean enabled); View getView();  }