From 8cb9633d395b1484be55be7e696e0b8adf017d43 Mon Sep 17 00:00:00 2001 From: Pablo Pajuelo Cabezas Date: Thu, 7 Nov 2024 16:50:00 +0100 Subject: [PATCH] fix test --- .../usescases/enrollment/EnrollmentPresenterImplTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/test/java/org/dhis2/usescases/enrollment/EnrollmentPresenterImplTest.kt b/app/src/test/java/org/dhis2/usescases/enrollment/EnrollmentPresenterImplTest.kt index 2303f140ad0..de04271f1f6 100644 --- a/app/src/test/java/org/dhis2/usescases/enrollment/EnrollmentPresenterImplTest.kt +++ b/app/src/test/java/org/dhis2/usescases/enrollment/EnrollmentPresenterImplTest.kt @@ -5,7 +5,6 @@ import io.reactivex.processors.PublishProcessor import org.dhis2.commons.matomo.MatomoAnalyticsController import org.dhis2.commons.schedulers.SchedulerProvider import org.dhis2.data.schedulers.TrampolineSchedulerProvider -import org.dhis2.form.data.EnrollmentRepository import org.dhis2.usescases.enrollment.EnrollmentActivity.EnrollmentMode.CHECK import org.dhis2.usescases.enrollment.EnrollmentActivity.EnrollmentMode.NEW import org.dhis2.usescases.teiDashboard.TeiAttributesProvider @@ -39,7 +38,6 @@ class EnrollmentPresenterImplTest { private val enrollmentFormRepository: EnrollmentFormRepository = mock() private val programRepository: ReadOnlyOneObjectRepositoryFinalImpl = mock() private val teiRepository: TrackedEntityInstanceObjectRepository = mock() - private val dataEntryRepository: EnrollmentRepository = mock() lateinit var presenter: EnrollmentPresenterImpl private val enrollmentView: EnrollmentView = mock() private val d2: D2 = Mockito.mock(D2::class.java, Mockito.RETURNS_DEEP_STUBS) @@ -49,6 +47,7 @@ class EnrollmentPresenterImplTest { private val matomoAnalyticsController: MatomoAnalyticsController = mock() private val eventCollectionRepository: EventCollectionRepository = mock() private val teiAttributesProvider: TeiAttributesProvider = mock() + private val dateEntryWarningHelper: DateEditionWarningHandler = mock() @Before fun setUp() { @@ -56,7 +55,6 @@ class EnrollmentPresenterImplTest { enrollmentView, d2, enrollmentRepository, - dataEntryRepository, teiRepository, programRepository, schedulers, @@ -65,6 +63,7 @@ class EnrollmentPresenterImplTest { matomoAnalyticsController, eventCollectionRepository, teiAttributesProvider, + dateEntryWarningHelper, ) }