use of org.robolectric.shadows.ShadowDialog in project android_packages_apps_Settings by omnirom.
the class ChooseLockTypeDialogFragmentTest method testThatDialog_IsShown.
@Test
public void testThatDialog_IsShown() {
AlertDialog latestDialog = startLockFragment();
assertNotNull(latestDialog);
ShadowDialog shadowDialog = Shadows.shadowOf(latestDialog);
// verify that we are looking at the expected dialog.
assertEquals(shadowDialog.getTitle(), mContext.getString(R.string.setup_lock_settings_options_dialog_title));
}
use of org.robolectric.shadows.ShadowDialog in project android_packages_apps_Settings by SudaMod.
the class ChooseLockTypeDialogFragmentTest method testThatDialog_IsShown.
@Test
public void testThatDialog_IsShown() {
AlertDialog latestDialog = startLockFragment();
assertNotNull(latestDialog);
ShadowDialog shadowDialog = Shadows.shadowOf(latestDialog);
// verify that we are looking at the expected dialog.
assertEquals(shadowDialog.getTitle(), mContext.getString(R.string.setup_lock_settings_options_dialog_title));
}
use of org.robolectric.shadows.ShadowDialog in project platform_packages_apps_Settings by BlissRoms.
the class ChooseLockTypeDialogFragmentTest method testThatDialog_IsShown.
@Test
public void testThatDialog_IsShown() {
AlertDialog latestDialog = startLockFragment();
assertNotNull(latestDialog);
ShadowDialog shadowDialog = Shadows.shadowOf(latestDialog);
// verify that we are looking at the expected dialog.
assertEquals(shadowDialog.getTitle(), mContext.getString(R.string.setup_lock_settings_options_dialog_title));
}
use of org.robolectric.shadows.ShadowDialog in project android_packages_apps_Settings by LineageOS.
the class ChooseLockTypeDialogFragmentTest method testThatDialog_IsShown.
@Test
public void testThatDialog_IsShown() {
AlertDialog latestDialog = startLockFragment();
assertNotNull(latestDialog);
ShadowDialog shadowDialog = Shadows.shadowOf(latestDialog);
// verify that we are looking at the expected dialog.
assertEquals(shadowDialog.getTitle(), mContext.getString(R.string.setup_lock_settings_options_dialog_title));
}
use of org.robolectric.shadows.ShadowDialog in project android_packages_apps_Settings by DirtyUnicorns.
the class ChooseLockTypeDialogFragmentTest method testThatDialog_IsShown.
@Test
public void testThatDialog_IsShown() {
AlertDialog latestDialog = startLockFragment();
assertNotNull(latestDialog);
ShadowDialog shadowDialog = Shadows.shadowOf(latestDialog);
// verify that we are looking at the expected dialog.
assertEquals(shadowDialog.getTitle(), mContext.getString(R.string.setup_lock_settings_options_dialog_title));
}
Aggregations