use of com.nightscout.android.preferences.AndroidPreferences in project android-uploader by nightscout.
the class AndroidBarcodeTest method setUp.
@Before
public void setUp() {
activity = Robolectric.buildActivity(SettingsActivity.class).create().get();
sharedPrefs = ShadowPreferenceManager.getDefaultSharedPreferences(Robolectric.application.getApplicationContext());
prefs = new AndroidPreferences(activity.getApplicationContext(), sharedPrefs);
}
use of com.nightscout.android.preferences.AndroidPreferences in project android-uploader by nightscout.
the class MainActivityTest method setUp.
@Before
public void setUp() {
activityController = Robolectric.buildActivity(MainActivity.class);
preferences = new AndroidPreferences(getContext());
MockitoAnnotations.initMocks(this);
}
Aggregations