From 1357e35608308c15effba86e454235c4093156f7 Mon Sep 17 00:00:00 2001 From: lwih Date: Wed, 4 Sep 2024 15:16:22 +0200 Subject: [PATCH] fix: add required attributes to fish action mock --- .../mocks/mission/action/FishActionControlMock.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/src/test/kotlin/fr/gouv/gmampa/rapportnav/mocks/mission/action/FishActionControlMock.kt b/backend/src/test/kotlin/fr/gouv/gmampa/rapportnav/mocks/mission/action/FishActionControlMock.kt index 30b2c51e4..e3c871667 100644 --- a/backend/src/test/kotlin/fr/gouv/gmampa/rapportnav/mocks/mission/action/FishActionControlMock.kt +++ b/backend/src/test/kotlin/fr/gouv/gmampa/rapportnav/mocks/mission/action/FishActionControlMock.kt @@ -5,6 +5,7 @@ import java.time.LocalDateTime import java.time.ZoneOffset import java.time.ZonedDateTime import java.util.* +import com.neovisionaries.i18n.CountryCode object FishActionControlMock { fun create( @@ -27,7 +28,9 @@ object FishActionControlMock { completion: Completion = Completion.COMPLETED, gearInfractions: List = listOf(), logbookInfractions: List = listOf(), - otherInfractions: List = listOf() + otherInfractions: List = listOf(), + userTrigram: String = "TKT", + flagState: CountryCode = CountryCode.FR, ): MissionAction { return MissionAction( id = id, @@ -49,7 +52,10 @@ object FishActionControlMock { completion = completion, gearInfractions = gearInfractions, logbookInfractions = logbookInfractions, - otherInfractions = otherInfractions + otherInfractions = otherInfractions, + flagState = flagState, + userTrigram = userTrigram, + isFromPoseidon = false, ) } }