public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; }
private void enableActions(boolean enabled) { startAction.setEnabled(enabled); stopAction.setEnabled(enabled); deleteAction.setEnabled(enabled); }
public void setEnabled(final boolean enabled) { view.setEnabled(enabled); }
@Test public void testSetup() { presenter.setup(LABEL, command); verify(view, times(1)).setLabel(LABEL); //verify the command was properly set presenter.onActionClick(); verify(command, times(1)).execute(); }
@Test public void testSetEnabledFalse() { presenter.setEnabled(false); verify(view, times(1)).setEnabled(false); }
@Before public void setUp() { presenter = new RuntimeActionItemPresenter(view); presenter.init(); verify(view, times(1)).init(presenter); }
@Before public void setUp() { presenter = new RuntimeActionItemSeparatorPresenter(view); presenter.init(); verify(view, times(1)).init(presenter); }
@EventHandler("action-item-anchor") protected void onActionAnchorClick(@ForEvent("click") final Event event) { if (enabled) { presenter.onActionClick(); } } }
@PostConstruct public void init() { view.init(this); }
@PostConstruct public void init() { view.init(this); }
@Test public void testSetup() { presenter.setup(LABEL, command); verify(view, times(1)).setLabel(LABEL); //verify the command was properly set presenter.onActionClick(); verify(command, times(1)).execute(); }
@Test public void testSetEnabledTrue() { presenter.setEnabled(true); verify(view, times(1)).setEnabled(true); }
@Before public void setUp() { presenter = new RuntimeActionItemPresenter(view); presenter.init(); verify(view, times(1)).init(presenter); }
@Before public void setUp() { presenter = new RuntimeActionItemSeparatorPresenter(view); presenter.init(); verify(view, times(1)).init(presenter); }
public void setup(final String label, final Command command) { view.setLabel(label); this.command = command; }
public void setEnabled(final boolean enabled) { view.setEnabled(enabled); }
@PostConstruct public void init() { view.init(this); }
@PostConstruct public void init() { view.init(this); }
@Test public void testSetEnabledFalse() { presenter.setEnabled(false); verify(view, times(1)).setEnabled(false); }
@Test public void testSetEnabledTrue() { presenter.setEnabled(true); verify(view, times(1)).setEnabled(true); }