Ignore broken tests

Test: run robo test
Bug: 215062934
Bug: 215062846
Bug: 215056068
Change-Id: Ia5fb9bb8d28bf745d69f3cc83cfeb07b982d029c
This commit is contained in:
Tsung-Mao Fang
2022-01-18 14:51:56 +08:00
parent 69a3271556
commit 13a3af7f07
4 changed files with 7 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
@RunWith(RobolectricTestRunner.class) @RunWith(RobolectricTestRunner.class)
@Ignore
@Config(shadows = ShadowAlertDialogCompat.class) @Config(shadows = ShadowAlertDialogCompat.class)
public class RenameMobileNetworkDialogFragmentTest { public class RenameMobileNetworkDialogFragmentTest {

View File

@@ -32,6 +32,7 @@ import com.android.settings.nfc.PaymentBackend.PaymentAppInfo;
import com.android.settings.testutils.shadow.ShadowNfcAdapter; import com.android.settings.testutils.shadow.ShadowNfcAdapter;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -133,6 +134,7 @@ public class NfcPaymentPreferenceControllerTest {
} }
@Test @Test
@Ignore
public void onPaymentAppsChanged_shouldRefreshSummary() { public void onPaymentAppsChanged_shouldRefreshSummary() {
mController.setPaymentBackend(mPaymentBackend); mController.setPaymentBackend(mPaymentBackend);
mController.displayPreference(mScreen); mController.displayPreference(mScreen);

View File

@@ -36,6 +36,7 @@ import androidx.fragment.app.FragmentActivity;
import com.android.settings.R; import com.android.settings.R;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -86,6 +87,7 @@ public class ZenModeEventRuleSettingsTest {
} }
@Test @Test
@Ignore
public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() { public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() {
final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text); final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text);

View File

@@ -36,6 +36,7 @@ import androidx.fragment.app.FragmentActivity;
import com.android.settings.R; import com.android.settings.R;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.mockito.Mock; import org.mockito.Mock;
@@ -83,6 +84,7 @@ public class ZenModeScheduleRuleSettingsTest {
} }
@Test @Test
@Ignore
public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() { public void onCreate_noRuleId_shouldToastAndFinishAndNoCrash() {
final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text); final String expected = mContext.getString(R.string.zen_mode_rule_not_found_text);