Class AdminBrowseProfilesFragmentTest

java.lang.Object
com.example.breeze_seas.AdminBrowseProfilesFragmentTest

public class AdminBrowseProfilesFragmentTest extends Object
Instrumentation tests for the admin profile-browsing screen and its list filtering behavior.
  • Constructor Details

    • AdminBrowseProfilesFragmentTest

      public AdminBrowseProfilesFragmentTest()
  • Method Details

    • testProfilesListShowsMockUsers

      public void testProfilesListShowsMockUsers()
      Verifies that three mock non-admin users are all shown in the RecyclerView. The adapter filters out admin accounts so all three should appear.
    • testAdminUsersAreExcluded

      public void testAdminUsersAreExcluded()
      Verifies that admin users are excluded from the displayed list. Two regular users and one admin are injected. Only the two regular users should appear since the adapter always strips admin accounts.
    • testSearchFilterShowsMatchingProfile

      public void testSearchFilterShowsMatchingProfile()
      Verifies that typing a name into the search bar filters the list to only profiles whose display name, username, or device ID contains the query. Two users are injected and only the one matching the query should remain.
    • testSearchFilterNoMatchShowsEmptyList

      public void testSearchFilterNoMatchShowsEmptyList()
      Verifies that typing a query that matches no profiles results in an empty list.
    • testEmptyUserListShowsNoProfiles

      public void testEmptyUserListShowsNoProfiles()
      Verifies that an empty user list results in no items shown in the RecyclerView.