[Wi-Fi] Remove @Ignore unit tests

Remove @Ignore in these objects:

  ConfigureWifiSettingsTest
  TetherServiceTest.java
  WifiTetherSecurityPreferenceControllerTest.java
  WifiSettings2Test

Bug: 151696220
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wifi
Change-Id: I19bdc251d76161218454c1b5f58421efab33cec0
This commit is contained in:
Arc Wang
2020-03-26 00:56:26 +08:00
parent c37fcd0cb8
commit 249f629b22
4 changed files with 20 additions and 24 deletions

View File

@@ -9,7 +9,6 @@ import android.content.Context;
import com.android.settings.testutils.XmlTestUtils;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
@@ -28,18 +27,6 @@ public class ConfigureWifiSettingsTest {
mContext = spy(RuntimeEnvironment.application);
}
@Test
@Ignore
public void testNonIndexableKeys_existInXmlLayout() {
final List<String> niks =
ConfigureWifiSettings.SEARCH_INDEX_DATA_PROVIDER.getNonIndexableKeys(mContext);
final int xmlId = new ConfigureWifiSettings().getPreferenceScreenResId();
final List<String> keys = XmlTestUtils.getKeysFromPreferenceXml(mContext, xmlId);
assertThat(keys).containsAllIn(niks);
}
@Test
@Config(qualifiers = "mcc999")
public void testNonIndexableKeys_ifPageDisabled_shouldNotIndexResource() {