Class AdminDashboardFragmentTest

java.lang.Object
com.example.breeze_seas.AdminDashboardFragmentTest

public class AdminDashboardFragmentTest extends Object
Instrumentation tests covering the admin-auth entry flow from the profile screen.
  • Constructor Details

    • AdminDashboardFragmentTest

      public AdminDashboardFragmentTest()
  • Method Details

    • testWrongPasswordDoesNotNavigate

      public void testWrongPasswordDoesNotNavigate()
      Verifies that submitting an incorrect password in the admin auth dialog does not navigate to AdminDashboardFragment. The container should still hold ProfileFragment after the failed attempt.
    • testCorrectPasswordNavigatesToAdminDashboard

      public void testCorrectPasswordNavigatesToAdminDashboard()
      Verifies that submitting the correct password in the admin auth dialog navigates to AdminDashboardFragment. The UserDB in the dialog is mocked so that the updateUser() call does not reach Firebase.