use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by LineageOS.
the class ChooseLockPasswordTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ShadowDrawable drawable = setActivityAndGetIconDrawable(true);
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by LineageOS.
the class ChooseLockPatternTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getFragmentManager().findFragmentById(R.id.main_content);
ShadowDrawable drawable = Shadows.shadowOf(((GlifLayout) fragment.getView()).getIcon());
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by omnirom.
the class ChooseLockPasswordTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ShadowDrawable drawable = setActivityAndGetIconDrawable(true);
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by DirtyUnicorns.
the class ChooseLockPatternTest method assertThat_chooseLockIconChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconChanged_WhenFingerprintExtraSet() {
ChooseLockPattern activity = createActivity(true);
ChooseLockPatternFragment fragment = (ChooseLockPatternFragment) activity.getFragmentManager().findFragmentById(R.id.main_content);
ShadowDrawable drawable = Shadows.shadowOf(((GlifLayout) fragment.getView()).getIcon());
assertThat(drawable.getCreatedFromResId()).isEqualTo(R.drawable.ic_fingerprint_header);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by crdroidandroid.
the class ChooseLockPasswordTest method assertThat_chooseLockIconNotChanged_WhenFingerprintExtraSet.
@Test
public void assertThat_chooseLockIconNotChanged_WhenFingerprintExtraSet() {
ShadowDrawable drawable = setActivityAndGetIconDrawable(false);
assertThat(drawable.getCreatedFromResId()).isNotEqualTo(R.drawable.ic_fingerprint_header);
}
Aggregations