@Test public void testSettings_MapMatching_ON_OFF() { String prefMapMatchingToggle = resources.getString(R.string.key_pref_mapMatching_toggle); sharedPreferences.edit().putBoolean(prefMapMatchingToggle, true).commit(); activity.onResume(); verify(userLocator, times(1)).setMapMatchingMode(eq(UserLocator.MAP_MATCHING_MODE_SIMPLE_WAY_SNAP)); verify(userLocator, never()).setMapMatchingMode(eq(UserLocator.MAP_MATCHING_MODE_NONE)); sharedPreferences.edit().putBoolean(prefMapMatchingToggle, false).commit(); activity.onResume(); verify(userLocator, times(1)).setMapMatchingMode(eq(UserLocator.MAP_MATCHING_MODE_NONE)); }
@Override protected void onResume() { super.onResume(); applySettings(); }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); } }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  @Override void onCreate(final Bundle savedInstanceState); @Override boolean onCreateOptionsMenu(final Menu menu); @Override void onDownloadFinished(final DownloadTask task, final boolean success, final Map<String, Collection> data); @Override // NOSONAR - Method cannot be shortened!!! boolean onOptionsItemSelected(final MenuItem item); void toggleFingerprintMode(final View view); }
MapActivity extends AbstractMapActivity implements DownloadListener<Map<String, Collection>> { @Override protected void onResume() { super.onResume(); applySettings(); }  @Override void onCreate(final Bundle savedInstanceState); @Override boolean onCreateOptionsMenu(final Menu menu); @Override void onDownloadFinished(final DownloadTask task, final boolean success, final Map<String, Collection> data); @Override // NOSONAR - Method cannot be shortened!!! boolean onOptionsItemSelected(final MenuItem item); void toggleFingerprintMode(final View view);  }