-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix updatedBy logic in CreateOrUpdateManualPriorNotification use case
- Loading branch information
1 parent
a1db22d
commit 00fb33d
Showing
6 changed files
with
18 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -356,6 +356,7 @@ class CreateOrUpdateManualPriorNotificationITests : AbstractDBTests() { | |
val afterPriorNotification = | ||
createOrUpdateManualPriorNotification.execute( | ||
reportId = reportId, | ||
author = "[email protected]", | ||
didNotFishAfterZeroNotice = false, | ||
expectedArrivalDate = ZonedDateTime.now(), | ||
expectedLandingDate = ZonedDateTime.now(), | ||
|
@@ -368,7 +369,6 @@ class CreateOrUpdateManualPriorNotificationITests : AbstractDBTests() { | |
purpose = LogbookMessagePurpose.LAN, | ||
sentAt = ZonedDateTime.now(), | ||
tripGearCodes = emptyList(), | ||
updatedBy = "[email protected]", | ||
vesselId = 1, | ||
) | ||
|
||
|
@@ -405,6 +405,7 @@ class CreateOrUpdateManualPriorNotificationITests : AbstractDBTests() { | |
val afterPriorNotification = | ||
createOrUpdateManualPriorNotification.execute( | ||
reportId = reportId, | ||
author = "[email protected]", | ||
didNotFishAfterZeroNotice = false, | ||
expectedArrivalDate = ZonedDateTime.now(), | ||
expectedLandingDate = ZonedDateTime.now(), | ||
|
@@ -417,7 +418,6 @@ class CreateOrUpdateManualPriorNotificationITests : AbstractDBTests() { | |
purpose = LogbookMessagePurpose.LAN, | ||
sentAt = ZonedDateTime.now(), | ||
tripGearCodes = emptyList(), | ||
updatedBy = "[email protected]", | ||
vesselId = 1, | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -85,7 +85,7 @@ class CreateOrUpdateManualPriorNotificationUTests { | |
computeManualPriorNotification, | ||
getPriorNotification, | ||
).execute( | ||
purpose = LogbookMessagePurpose.LAN, | ||
author = "[email protected]", | ||
didNotFishAfterZeroNotice = false, | ||
expectedArrivalDate = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
expectedLandingDate = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
|
@@ -95,10 +95,10 @@ class CreateOrUpdateManualPriorNotificationUTests { | |
hasPortLandingAuthorization = true, | ||
note = null, | ||
portLocode = "FAKE_PORT_LOCODE", | ||
purpose = LogbookMessagePurpose.LAN, | ||
reportId = null, | ||
sentAt = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
tripGearCodes = emptyList(), | ||
updatedBy = "[email protected]", | ||
vesselId = 1, | ||
) | ||
|
||
|
@@ -148,7 +148,7 @@ class CreateOrUpdateManualPriorNotificationUTests { | |
computeManualPriorNotification, | ||
getPriorNotification, | ||
).execute( | ||
purpose = LogbookMessagePurpose.LAN, | ||
author = "[email protected]", | ||
didNotFishAfterZeroNotice = false, | ||
expectedArrivalDate = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
expectedLandingDate = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
|
@@ -158,10 +158,10 @@ class CreateOrUpdateManualPriorNotificationUTests { | |
hasPortLandingAuthorization = true, | ||
note = null, | ||
portLocode = "FAKE_PORT_LOCODE", | ||
purpose = LogbookMessagePurpose.LAN, | ||
reportId = existingFakePriorNotification.reportId!!, | ||
sentAt = ZonedDateTime.parse("2024-01-01T00:00:00Z"), | ||
tripGearCodes = emptyList(), | ||
updatedBy = "[email protected]", | ||
vesselId = 1, | ||
) | ||
|
||
|
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