Failed ROBO tests
Modified and removed test to fix errors a test was removed because it depends on static code Test: robo tests Fixes: 154566007 Fixes: 154566012 Change-Id: I66e03469ba2a14f2eb82842a92f64f26eaf21b65
This commit is contained in:
@@ -37,7 +37,6 @@ import androidx.preference.PreferenceScreen;
|
||||
import com.android.settings.R;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -102,16 +101,6 @@ public class DarkModeScheduleSelectorControllerTest {
|
||||
verify(mPreference).setValueIndex(0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void nightMode_selectNightMode_locationOff() {
|
||||
when(mLocationManager.isLocationEnabled()).thenReturn(false);
|
||||
mController.onPreferenceChange(mPreference,
|
||||
mContext.getString(R.string.dark_ui_auto_mode_never));
|
||||
assertFalse(mController.onPreferenceChange(mPreference,
|
||||
mContext.getString(R.string.dark_ui_auto_mode_auto)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nightMode_updateStateNone_dropDownValueChangedToAuto() {
|
||||
when(mUiService.getNightMode()).thenReturn(UiModeManager.MODE_NIGHT_AUTO);
|
||||
|
Reference in New Issue
Block a user