Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 199ee2cb authored by SongFerngWang's avatar SongFerngWang Committed by SongFerng Wang
Browse files

Remove MobileNetworkSettingsTest#onAttach

The MobilieNetworkActivity has MobileNetworkSettings fragment. The
MobileNetworkActivityTest do testcases for activity stability.
The activity's launch test successful is equals the fragment doesn't
crash, so the activity's testcases cover
MobileNetworkSettingsTest#onAttach.

Bug: 147464840
Test: build pass
Change-Id: Idbabb846c40fd117f22a39b86fd6628b7d8c5b1b
parent bff181f8
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@ import com.android.settings.widget.EntityHeaderController;
import com.android.settingslib.core.AbstractPreferenceController;

import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@@ -91,13 +90,6 @@ public class MobileNetworkSettingsTest {
                mNetworkPolicyManager);
    }

    @Test
    @Ignore
    public void onAttach_noCrash() {
        mFragment.onAttach(mContext);
    }


    @Test
    public void createPreferenceControllers_createsDataUsageSummaryController() {
        final List<AbstractPreferenceController> controllers =