Skip to content

Commit

Permalink
fix: add required attributes to fish action mock
Browse files Browse the repository at this point in the history
  • Loading branch information
lwih committed Sep 4, 2024
1 parent de8cd34 commit 1357e35
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -27,7 +28,9 @@ object FishActionControlMock {
completion: Completion = Completion.COMPLETED,
gearInfractions: List<GearInfraction> = listOf(),
logbookInfractions: List<LogbookInfraction> = listOf(),
otherInfractions: List<OtherInfraction> = listOf()
otherInfractions: List<OtherInfraction> = listOf(),
userTrigram: String = "TKT",
flagState: CountryCode = CountryCode.FR,
): MissionAction {
return MissionAction(
id = id,
Expand All @@ -49,7 +52,10 @@ object FishActionControlMock {
completion = completion,
gearInfractions = gearInfractions,
logbookInfractions = logbookInfractions,
otherInfractions = otherInfractions
otherInfractions = otherInfractions,
flagState = flagState,
userTrigram = userTrigram,
isFromPoseidon = false,
)
}
}

0 comments on commit 1357e35

Please sign in to comment.