Settings: Annotate JUnit4 test with @Test

Mollify Errorprone.

Bug: 72076216
Bug: 73796195
Test: m javac-check RUN_ERROR_PRONE=true
Test: m RunSettingsRoboTests
Test: atest WifiSettingsUiTest
Change-Id: I9bc950f0ecf8d6de89b9401ea4cf1c50fd3acbcd
This commit is contained in:
Andreas Gampe
2018-02-22 20:25:34 -08:00
parent 87a17d01a6
commit f259c55eed
2 changed files with 4 additions and 0 deletions

View File

@@ -355,6 +355,7 @@ public class MasterClearTest {
assertEquals(TEST_CONFIRMATION_CLASS, actualIntent.getComponent().getClassName());
}
@Test
public void testShowAccountCredentialConfirmation() {
// Finally mock out the startActivityForResultCall
doNothing().when(mMasterClear)

View File

@@ -61,6 +61,7 @@ import com.android.settingslib.wifi.WifiTrackerFactory;
import com.google.common.collect.Lists;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -342,6 +343,8 @@ public class WifiSettingsUiTest {
onView(withId(resourceId(ID, PASSWORD))).check(matches(isDisplayed()));
}
@Ignore("b/73796195")
@Test
public void onConnectedChanged_shouldNotFetchAPs() {
setWifiState(WifiManager.WIFI_STATE_ENABLED);
when(mWifiTracker.isConnected()).thenReturn(true);