@Test public void testOnOkButtonClicked() throws Exception { activity.onOkButtonClicked(); verify(activity.presenter).makeCalculation("", "", Calculator.Sign.PLUS); }
@OnClick(R.id.ok_button) public void onOkButtonClicked() { presenter.makeCalculation(firstEditText.getText().toString(), secondEditText.getText().toString(), spinner.getSelectedItem().toString()); }
MainActivity extends AppCompatActivity implements MainView { @OnClick(R.id.ok_button) public void onOkButtonClicked() { presenter.makeCalculation(firstEditText.getText().toString(), secondEditText.getText().toString(), spinner.getSelectedItem().toString()); } }
MainActivity extends AppCompatActivity implements MainView { @OnClick(R.id.ok_button) public void onOkButtonClicked() { presenter.makeCalculation(firstEditText.getText().toString(), secondEditText.getText().toString(), spinner.getSelectedItem().toString()); }  }
MainActivity extends AppCompatActivity implements MainView { @OnClick(R.id.ok_button) public void onOkButtonClicked() { presenter.makeCalculation(firstEditText.getText().toString(), secondEditText.getText().toString(), spinner.getSelectedItem().toString()); }  @Override void showResult(float result); @Override void showError(); @OnClick(R.id.ok_button) void onOkButtonClicked(); }
MainActivity extends AppCompatActivity implements MainView { @OnClick(R.id.ok_button) public void onOkButtonClicked() { presenter.makeCalculation(firstEditText.getText().toString(), secondEditText.getText().toString(), spinner.getSelectedItem().toString()); }  @Override void showResult(float result); @Override void showError(); @OnClick(R.id.ok_button) void onOkButtonClicked();  }