Package com.example.breeze_seas
Class ProfileFragmentTest
java.lang.Object
com.example.breeze_seas.ProfileFragmentTest
Instrumentation tests for the profile screen's basic visibility and editing affordances.
-
Field Summary
FieldsModifier and TypeFieldDescriptionandroidx.test.ext.junit.rules.ActivityScenarioRule<MainActivity> Rule that launches theMainActivitybefore every test case. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Initializes the testing environment.voidValidates the toggling logic of profile input fields.voidVerifies that all essential profile UI components are visible to the user after data is successfully loaded from Firebase.
-
Field Details
-
activityRule
Rule that launches theMainActivitybefore every test case. This ensures the fragment container is available for navigation.
-
-
Constructor Details
-
ProfileFragmentTest
public ProfileFragmentTest()
-
-
Method Details
-
setUp
public void setUp()Initializes the testing environment. *Ensures that
FirebaseAppis initialized within the application context if it hasn't been already, preventing "Firebase not initialized" exceptions during real database operations. -
testProfileComponentsVisibility
Verifies that all essential profile UI components are visible to the user after data is successfully loaded from Firebase.- Throws:
InterruptedException
-
testEditFieldToggle
Validates the toggling logic of profile input fields.- Throws:
InterruptedException
-