Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Balcan committed Nov 7, 2024
1 parent 69f3b89 commit 8cb9633
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -39,7 +38,6 @@ class EnrollmentPresenterImplTest {
private val enrollmentFormRepository: EnrollmentFormRepository = mock()
private val programRepository: ReadOnlyOneObjectRepositoryFinalImpl<Program> = 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)
Expand All @@ -49,14 +47,14 @@ 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() {
presenter = EnrollmentPresenterImpl(
enrollmentView,
d2,
enrollmentRepository,
dataEntryRepository,
teiRepository,
programRepository,
schedulers,
Expand All @@ -65,6 +63,7 @@ class EnrollmentPresenterImplTest {
matomoAnalyticsController,
eventCollectionRepository,
teiAttributesProvider,
dateEntryWarningHelper,
)
}

Expand Down

0 comments on commit 8cb9633

Please sign in to comment.