Skip to content

Commit

Permalink
Refactor code using ./gradlew ktlintFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzalsif committed Jan 15, 2024
1 parent ffd8aa9 commit 1f12d64
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,38 +438,38 @@ class EventCapturePresenterTest {
val programStages = listOf(ProgramStage.builder().uid("programStageUid").build())
val events = listOf(Event.builder().uid("eventUid").build())
val trackedEntityAttributes = listOf(
Pair.create(
TrackedEntityAttribute.builder().uid("teiAttr").build(),
TrackedEntityAttributeValue.builder().build(),
),
Pair.create(
TrackedEntityAttribute.builder().uid("teiAttr").build(),
TrackedEntityAttributeValue.builder().build(),
),
)
val trackedEntityAttributeValues = listOf(TrackedEntityAttributeValue.builder().build())
val orgUnits = listOf(OrganisationUnit.builder().uid("orgUnitUid").build())
val programs = listOf(Program.builder().uid(programUid).build())

whenever(
dashboardRepository.getTrackedEntityInstance(teiUid),
dashboardRepository.getTrackedEntityInstance(teiUid),
) doReturn Observable.just(trackedEntityInstance)
whenever(
dashboardRepository.getEnrollment(),
dashboardRepository.getEnrollment(),
) doReturn Observable.just(enrollment)
whenever(
dashboardRepository.getProgramStages(programUid),
dashboardRepository.getProgramStages(programUid),
) doReturn Observable.just(programStages)
whenever(
dashboardRepository.getTEIEnrollmentEvents(programUid, teiUid),
dashboardRepository.getTEIEnrollmentEvents(programUid, teiUid),
) doReturn Observable.just(events)
whenever(
dashboardRepository.getAttributesMap(programUid, teiUid),
dashboardRepository.getAttributesMap(programUid, teiUid),
) doReturn Observable.just(trackedEntityAttributes)
whenever(
dashboardRepository.getTEIAttributeValues(programUid, teiUid),
dashboardRepository.getTEIAttributeValues(programUid, teiUid),
) doReturn Observable.just(trackedEntityAttributeValues)
whenever(
dashboardRepository.getTeiOrgUnits(teiUid, programUid),
dashboardRepository.getTeiOrgUnits(teiUid, programUid),
) doReturn Observable.just(orgUnits)
whenever(
dashboardRepository.getTeiActivePrograms(teiUid, false),
dashboardRepository.getTeiActivePrograms(teiUid, false),
) doReturn Observable.just(programs)
whenever(eventRepository.programStageName()) doReturn Flowable.just(stage.uid())
whenever(eventRepository.eventDate()) doReturn Flowable.just(date)
Expand Down

0 comments on commit 1f12d64

Please sign in to comment.