@Test public void setResolutionResultAndFinish_Canceled() { activity.setResolutionResultAndFinish(Activity.RESULT_CANCELED); PowerMockito.verifyStatic(SettingsCheckHandleSingleOnSubscribe.class); SettingsCheckHandleSingleOnSubscribe.onResolutionResult(observableId, Activity.RESULT_CANCELED); verify(activity).finish(); }
void setResolutionResultAndFinish(int resultCode) { SettingsCheckHandleSingleOnSubscribe.onResolutionResult(getIntent().getStringExtra(ARG_ID), resultCode); finish(); }
LocationSettingsActivity extends Activity { void setResolutionResultAndFinish(int resultCode) { SettingsCheckHandleSingleOnSubscribe.onResolutionResult(getIntent().getStringExtra(ARG_ID), resultCode); finish(); } }
LocationSettingsActivity extends Activity { void setResolutionResultAndFinish(int resultCode) { SettingsCheckHandleSingleOnSubscribe.onResolutionResult(getIntent().getStringExtra(ARG_ID), resultCode); finish(); }  }
LocationSettingsActivity extends Activity { void setResolutionResultAndFinish(int resultCode) { SettingsCheckHandleSingleOnSubscribe.onResolutionResult(getIntent().getStringExtra(ARG_ID), resultCode); finish(); }   }
LocationSettingsActivity extends Activity { void setResolutionResultAndFinish(int resultCode) { SettingsCheckHandleSingleOnSubscribe.onResolutionResult(getIntent().getStringExtra(ARG_ID), resultCode); finish(); }    }