Loading tests/robotests/src/com/android/settings/display/DisplayScreenTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import com.android.settings.flags.Flags import com.android.settings.testutils.FakeFeatureFactory import com.android.settingslib.preference.CatalystScreenTestCase import com.google.common.truth.Truth.assertThat import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith import org.mockito.ArgumentMatchers.anyInt Loading Loading @@ -65,6 +66,7 @@ class DisplayScreenTest : CatalystScreenTestCase() { assertThat(preferenceScreenCreator.isAvailable(contextWrapper)).isFalse() } @Ignore("robolectric.createActivityContexts cause other test failure") override fun migration() { // avoid UnsupportedOperationException when getDisplay from context System.setProperty("robolectric.createActivityContexts", "true") Loading Loading
tests/robotests/src/com/android/settings/display/DisplayScreenTest.kt +2 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import com.android.settings.flags.Flags import com.android.settings.testutils.FakeFeatureFactory import com.android.settingslib.preference.CatalystScreenTestCase import com.google.common.truth.Truth.assertThat import org.junit.Ignore import org.junit.Test import org.junit.runner.RunWith import org.mockito.ArgumentMatchers.anyInt Loading Loading @@ -65,6 +66,7 @@ class DisplayScreenTest : CatalystScreenTestCase() { assertThat(preferenceScreenCreator.isAvailable(contextWrapper)).isFalse() } @Ignore("robolectric.createActivityContexts cause other test failure") override fun migration() { // avoid UnsupportedOperationException when getDisplay from context System.setProperty("robolectric.createActivityContexts", "true") Loading