From d478f2381293ddc8e228849c392aab7fd53c114a Mon Sep 17 00:00:00 2001 From: Pablo Pajuelo Cabezas Date: Mon, 9 Dec 2024 11:19:54 +0100 Subject: [PATCH] fix test --- .../eventDetails/EventDetailsIntegrationTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/EventDetailsIntegrationTest.kt b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/EventDetailsIntegrationTest.kt index 51d00a38d2..6b29a22f62 100644 --- a/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/EventDetailsIntegrationTest.kt +++ b/app/src/test/java/org/dhis2/usescases/eventsWithoutRegistration/eventDetails/EventDetailsIntegrationTest.kt @@ -5,6 +5,7 @@ import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.runBlocking import org.dhis2.commons.data.EventCreationType import org.dhis2.commons.locationprovider.LocationProvider +import org.dhis2.commons.periods.PeriodUseCase import org.dhis2.commons.prefs.PreferenceProvider import org.dhis2.commons.resources.DhisPeriodUtils import org.dhis2.commons.resources.EventResourcesProvider @@ -19,6 +20,7 @@ import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.Configu import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.ConfigureEventDetails import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.ConfigureEventReportDate import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.ConfigureOrgUnit +import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.ConfigurePeriodSelector import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.domain.CreateOrUpdateEventDetails import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.providers.EventDetailResourcesProvider import org.dhis2.usescases.eventsWithoutRegistration.eventDetails.ui.EventDetailsViewModel @@ -55,6 +57,7 @@ class EventDetailsIntegrationTest { private val eventResourcesProvider: EventResourcesProvider = mock() private val periodUtils: DhisPeriodUtils = mock() private val preferencesProvider: PreferenceProvider = mock() + private val periodUseCase: PeriodUseCase = mock() // Preconditions, data source private val style: ObjectStyle = mock() @@ -138,6 +141,7 @@ class EventDetailsIntegrationTest { locationProvider = locationProvider, createOrUpdateEventDetails = createOrUpdateEventDetails(), resourcesProvider = provideEventResourcesProvider(), + configurePeriodSelector = ConfigurePeriodSelector(eventDetailsRepository, periodUseCase), ) private fun createConfigureEventCatCombo() = ConfigureEventCatCombo(