Loading tests/robotests/src/com/android/settings/password/ChooseLockGenericTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ import com.android.settingslib.widget.FooterPreference; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; Loading Loading @@ -233,7 +232,6 @@ public class ChooseLockGenericTest { } @Test @Ignore public void updatePreferencesOrFinish_callingAppIsAdmin_deviceNotProvisioned_footerInvisible() { Global.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 0); initActivity(new Intent().putExtra(EXTRA_KEY_IS_CALLING_APP_ADMIN, true)); Loading tests/robotests/src/com/android/settings/password/SetNewPasswordActivityTest.java +5 −7 Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ import com.google.android.setupcompat.util.WizardManagerHelper; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -105,18 +104,17 @@ public class SetNewPasswordActivityTest { } @Test @Ignore public void testSetupChooseLockGeneric() { Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0); Intent intent = new Intent(ACTION_SET_NEW_PASSWORD); intent.putExtra(WizardManagerHelper.EXTRA_IS_SETUP_FLOW, true); SetNewPasswordActivity activity = Robolectric.buildActivity(SetNewPasswordActivity.class).get(); activity.launchChooseLock(new Bundle()); Robolectric.buildActivity(SetNewPasswordActivity.class, intent).create().get(); ShadowActivity shadowActivity = Shadows.shadowOf(activity); Intent intent = getLaunchChooseLockIntent(shadowActivity); intent.putExtra(WizardManagerHelper.EXTRA_IS_FIRST_RUN, true); assertThat(intent.getComponent()) Intent nextIntent = shadowActivity.getNextStartedActivityForResult().intent; assertThat(nextIntent.getComponent()) .isEqualTo(new ComponentName(activity, SetupChooseLockGeneric.class)); } Loading Loading
tests/robotests/src/com/android/settings/password/ChooseLockGenericTest.java +0 −2 Original line number Diff line number Diff line Loading @@ -65,7 +65,6 @@ import com.android.settingslib.widget.FooterPreference; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; Loading Loading @@ -233,7 +232,6 @@ public class ChooseLockGenericTest { } @Test @Ignore public void updatePreferencesOrFinish_callingAppIsAdmin_deviceNotProvisioned_footerInvisible() { Global.putInt(application.getContentResolver(), Global.DEVICE_PROVISIONED, 0); initActivity(new Intent().putExtra(EXTRA_KEY_IS_CALLING_APP_ADMIN, true)); Loading
tests/robotests/src/com/android/settings/password/SetNewPasswordActivityTest.java +5 −7 Original line number Diff line number Diff line Loading @@ -50,7 +50,6 @@ import com.google.android.setupcompat.util.WizardManagerHelper; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; Loading Loading @@ -105,18 +104,17 @@ public class SetNewPasswordActivityTest { } @Test @Ignore public void testSetupChooseLockGeneric() { Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 0); Intent intent = new Intent(ACTION_SET_NEW_PASSWORD); intent.putExtra(WizardManagerHelper.EXTRA_IS_SETUP_FLOW, true); SetNewPasswordActivity activity = Robolectric.buildActivity(SetNewPasswordActivity.class).get(); activity.launchChooseLock(new Bundle()); Robolectric.buildActivity(SetNewPasswordActivity.class, intent).create().get(); ShadowActivity shadowActivity = Shadows.shadowOf(activity); Intent intent = getLaunchChooseLockIntent(shadowActivity); intent.putExtra(WizardManagerHelper.EXTRA_IS_FIRST_RUN, true); assertThat(intent.getComponent()) Intent nextIntent = shadowActivity.getNextStartedActivityForResult().intent; assertThat(nextIntent.getComponent()) .isEqualTo(new ComponentName(activity, SetupChooseLockGeneric.class)); } Loading