Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Balcan committed Dec 9, 2024
1 parent a9361b8 commit d478f23
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -138,6 +141,7 @@ class EventDetailsIntegrationTest {
locationProvider = locationProvider,
createOrUpdateEventDetails = createOrUpdateEventDetails(),
resourcesProvider = provideEventResourcesProvider(),
configurePeriodSelector = ConfigurePeriodSelector(eventDetailsRepository, periodUseCase),
)

private fun createConfigureEventCatCombo() = ConfigureEventCatCombo(
Expand Down

0 comments on commit d478f23

Please sign in to comment.