Search in sources :

Example 6 with ShadowDrawable

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);
}
Also used : ShadowDrawable(org.robolectric.shadows.ShadowDrawable) Test(org.junit.Test)

Example 7 with ShadowDrawable

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);
}
Also used : ShadowDrawable(org.robolectric.shadows.ShadowDrawable) Test(org.junit.Test)

Example 8 with ShadowDrawable

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);
}
Also used : ShadowDrawable(org.robolectric.shadows.ShadowDrawable) Test(org.junit.Test)

Example 9 with ShadowDrawable

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);
}
Also used : ShadowDrawable(org.robolectric.shadows.ShadowDrawable) Test(org.junit.Test)

Example 10 with ShadowDrawable

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);
}
Also used : ShadowDrawable(org.robolectric.shadows.ShadowDrawable) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)20 ShadowDrawable (org.robolectric.shadows.ShadowDrawable)20 ChooseLockPatternFragment (com.android.settings.password.ChooseLockPattern.ChooseLockPatternFragment)6