@Test public void testSetup() { final Command command = mock( Command.class ); presenter.setup( "title", command ); verify( view ).setText( "title" ); presenter.onSelect(); verify( command ).execute(); }
public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); }
LinkTitlePresenter implements TitlePresenter { public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); } }
LinkTitlePresenter implements TitlePresenter { public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); } @Inject  LinkTitlePresenter(final View view); }
LinkTitlePresenter implements TitlePresenter { public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); } @Inject  LinkTitlePresenter(final View view); @PostConstruct void init(); @Override View getView(); void setup(final String title,
                      final Command command); void onSelect(); }
LinkTitlePresenter implements TitlePresenter { public void setup(final String title, final Command command) { this.command = checkNotNull("command", command); view.setText(title); } @Inject  LinkTitlePresenter(final View view); @PostConstruct void init(); @Override View getView(); void setup(final String title,
                      final Command command); void onSelect();  }