@Test public void testShowingResult() throws Exception { EditText result = (EditText) activity.findViewById(R.id.result_editText); activity.showResult(12f); assertThat(result.getText().toString()).isEqualTo("12.0"); }
@Override public void showResult(float result) { resultEditText.setText(String.valueOf(result)); }
MainActivity extends AppCompatActivity implements MainView { @Override public void showResult(float result) { resultEditText.setText(String.valueOf(result)); } }
MainActivity extends AppCompatActivity implements MainView { @Override public void showResult(float result) { resultEditText.setText(String.valueOf(result)); }  }
MainActivity extends AppCompatActivity implements MainView { @Override public void showResult(float result) { resultEditText.setText(String.valueOf(result)); }  @Override void showResult(float result); @Override void showError(); @OnClick(R.id.ok_button) void onOkButtonClicked(); }
MainActivity extends AppCompatActivity implements MainView { @Override public void showResult(float result) { resultEditText.setText(String.valueOf(result)); }  @Override void showResult(float result); @Override void showError(); @OnClick(R.id.ok_button) void onOkButtonClicked();  }