-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(events): fixes for surveillance, fish actions, illegal immigratio…
…n and visual things
- Loading branch information
Showing
12 changed files
with
310 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...c/test/kotlin/fr/gouv/gmampa/rapportnav/mocks/mission/action/EnvActionSurveillanceMock.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package fr.gouv.gmampa.rapportnav.mocks.mission.action | ||
|
||
import fr.gouv.dgampa.rapportnav.domain.entities.mission.env.ActionCompletionEnum | ||
import fr.gouv.dgampa.rapportnav.domain.entities.mission.env.envActions.EnvActionSurveillanceEntity | ||
import fr.gouv.dgampa.rapportnav.domain.entities.mission.env.envActions.ThemeEntity | ||
import org.locationtech.jts.geom.Geometry | ||
import java.time.LocalDateTime | ||
import java.time.ZoneOffset | ||
import java.time.ZonedDateTime | ||
import java.util.* | ||
|
||
object EnvActionSurveillanceMock { | ||
fun create( | ||
id: UUID = UUID.randomUUID(), | ||
actionStartDateTimeUtc: ZonedDateTime? = ZonedDateTime.of(LocalDateTime.of(2022, 1, 2, 12, 0), ZoneOffset.UTC), | ||
actionEndDateTimeUtc: ZonedDateTime? = ZonedDateTime.of(LocalDateTime.of(2022, 1, 2, 14, 0), ZoneOffset.UTC), | ||
geom: Geometry? = null, | ||
facade: String? = null, | ||
department: String? = null, | ||
themes: List<ThemeEntity>? = null, | ||
observations: String? = null, | ||
completion: ActionCompletionEnum = ActionCompletionEnum.COMPLETED, | ||
completedBy: String? = null, | ||
openBy: String? = null, | ||
coverMissionZone: Boolean? = null, | ||
): EnvActionSurveillanceEntity { | ||
return EnvActionSurveillanceEntity( | ||
id = id, | ||
actionStartDateTimeUtc = actionStartDateTimeUtc, | ||
actionEndDateTimeUtc = actionEndDateTimeUtc, | ||
geom = geom, | ||
facade = facade, | ||
department = department, | ||
themes = themes, | ||
observations = observations, | ||
completion = completion, | ||
openBy = openBy, | ||
completedBy = completedBy, | ||
coverMissionZone = coverMissionZone | ||
// Set other properties to their default values or mocks as needed | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.