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

Commit 0bc03ce7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add a test method in DashboardFragmentRegistryTest."

parents df74838e 8efd72e6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import static com.google.common.truth.Truth.assertThat;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import com.android.settings.accounts.AccountDashboardFragment;
import com.android.settings.applications.specialaccess.SpecialAccessSettings;
import com.android.settingslib.drawer.CategoryKey;

import org.junit.Test;
@@ -41,4 +42,13 @@ public class DashboardFragmentRegistryTest {

        assertThat(fragment).isEqualTo(AccountDashboardFragment.class.getName());
    }

    @Test
    public void specialAppAccessCategoryShouldRedirectToSpecialAppAccessPage() {
        final String fragment =
                DashboardFragmentRegistry.CATEGORY_KEY_TO_PARENT_MAP.get(
                        CategoryKey.CATEGORY_SPECIAL_APP_ACCESS);

        assertThat(fragment).isEqualTo(SpecialAccessSettings.class.getName());
    }
}