Skip to content

Commit

Permalink
remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
thoomasbro authored and claire2212 committed Oct 20, 2023
1 parent c9ee998 commit 7785ce8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 54 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import java.time.ZonedDateTime
@Tag(description = "API Missions", name = "Missions")
class MissionsController(
private val createOrUpdateMissionWithAttachedReporting: CreateOrUpdateMissionWithAttachedReporting,
private val getMonitorEnvMissions: GetMonitorEnvMissions,
private val getMissions: GetMissions,
private val getMissionById: GetMissionById,
private val deleteMission: DeleteMission,
private val getEngagedControlUnits: GetEngagedControlUnits,
Expand Down Expand Up @@ -55,7 +55,7 @@ class MissionsController(
@RequestParam(name = "seaFronts", required = false)
seaFronts: List<String>?,
): List<MissionsDataOutput> {
val missions = getMonitorEnvMissions.execute(
val missions = getMissions.execute(
startedAfterDateTime = startedAfterDateTime,
startedBeforeDateTime = startedBeforeDateTime,
missionSources = missionSources,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import fr.gouv.cacem.monitorenv.domain.use_cases.missions.CreateOrUpdateMissionW
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.DeleteMission
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.GetEngagedControlUnits
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.GetMissionById
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.GetMonitorEnvMissions
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.GetMissions
import fr.gouv.cacem.monitorenv.domain.use_cases.missions.dtos.MissionDTO
import fr.gouv.cacem.monitorenv.domain.use_cases.reportings.dtos.ReportingDTO
import fr.gouv.cacem.monitorenv.infrastructure.api.adapters.bff.inputs.missions.CreateOrUpdateMissionDataInput
Expand Down Expand Up @@ -61,7 +61,7 @@ class MissionsControllerITests {
private lateinit var createOrUpdateMissionWithAttachedReporting: CreateOrUpdateMissionWithAttachedReporting

@MockBean
private lateinit var getMonitorEnvMissions: GetMonitorEnvMissions
private lateinit var getMissions: GetMissions

@MockBean
private lateinit var getMissionById: GetMissionById
Expand Down Expand Up @@ -217,7 +217,7 @@ class MissionsControllerITests {
),
)
given(
getMonitorEnvMissions.execute(
getMissions.execute(
startedAfterDateTime = null,
startedBeforeDateTime = null,
seaFronts = null,
Expand Down

0 comments on commit 7785ce8

Please sign in to comment.