Package com.example.breeze_seas
Class EventDataFlowTest
java.lang.Object
com.example.breeze_seas.EventDataFlowTest
Unit tests for organizer-facing event data flow used by the Organize landing page and event
preview screens.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal androidx.arch.core.executor.testing.InstantTaskExecutorRuleForces Architecture Components work onto the test thread soEventcan create and hydrateMutableLiveDatasafely in the JVM test environment. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidVerifies that Firestore event maps missing optional organizer fields still hydrate into a safe event model for the Organize landing page and event preview.voidVerifies that organizer membership helpers distinguish the lead organizer from co-organizers while still treating both as valid organizers for organizer-side access flows.voidVerifies that co-organizer identifiers survive the Firestore map round trip so organizer membership data remains available to the Organize landing page and event preview.voidVerifies that organizer-facing event metadata survives the create-to-map-to-hydrated-event round trip used by the Organize landing page and event preview.
-
Field Details
-
instantTaskExecutorRule
public final androidx.arch.core.executor.testing.InstantTaskExecutorRule instantTaskExecutorRuleForces Architecture Components work onto the test thread soEventcan create and hydrateMutableLiveDatasafely in the JVM test environment.
-
-
Constructor Details
-
EventDataFlowTest
public EventDataFlowTest()
-
-
Method Details
-
toMapAndLoadMap_preservesOrganizerFacingFields
public void toMapAndLoadMap_preservesOrganizerFacingFields()Verifies that organizer-facing event metadata survives the create-to-map-to-hydrated-event round trip used by the Organize landing page and event preview. -
loadMap_missingOptionalOrganizerFieldsUsesSafeDefaults
public void loadMap_missingOptionalOrganizerFieldsUsesSafeDefaults()Verifies that Firestore event maps missing optional organizer fields still hydrate into a safe event model for the Organize landing page and event preview. -
toMapAndLoadMap_preservesCoOrganizerIds
public void toMapAndLoadMap_preservesCoOrganizerIds()Verifies that co-organizer identifiers survive the Firestore map round trip so organizer membership data remains available to the Organize landing page and event preview. -
organizerMembershipChecks_distinguishLeadAndCoOrganizers
public void organizerMembershipChecks_distinguishLeadAndCoOrganizers()Verifies that organizer membership helpers distinguish the lead organizer from co-organizers while still treating both as valid organizers for organizer-side access flows.
-