use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by SudaMod.
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 SudaMod.
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);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by DirtyUnicorns.
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);
}
use of org.robolectric.shadows.ShadowDrawable in project android_packages_apps_Settings by DirtyUnicorns.
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 Resurrection_packages_apps_Settings by ResurrectionRemix.
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);
}
Aggregations