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