PreferencesHelper { public boolean getShowPopupNotification() { return mSettingsPref.getBoolean(mResources.getString(R.string.preferences_settings_key_pop_up_notification), true); } @Inject  PreferencesHelper(Context context); void clear(); void saveStartFromFirst(boolean isStartFromFirst); boolean getIsStartFromFirst(); Observable<List<String>> getAutoCompleteAsObservable(); void saveAutoCompleteItem(String item); void saveLastQueryLine(String lastQueryStation); String getLastQueryLine(); boolean getShowNotification(); boolean getTrackBackground(); boolean getShowPopupNotification(); int getAutoRefreshInterval(); static final String PREF_FILE_APP; }
@Test public void getShowPopupNotification_whenEmpty() throws Exception { assertThat(mPreferencesHelper.getShowPopupNotification()).isEqualTo(true); }