-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DT-853 #64
DT-853 #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am missing a validation to ensure the shipper provides the current scenario parameters.
As an example, for the REGULAR_NON_OPERATING_REEFER
scenario, the shipper must supply isNonOperatingReefer = false
.
I am aware that it was not present prior to your changes, but there is no point in all of these scenarios of the shipper can get a conform respond without actually following the scenario.
prefix, | ||
"the isNonOperatingReefer was true" | ||
); | ||
if (!scenarioType.equals(ScenarioType.REGULAR_NON_OPERATING_REEFER)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why you are making this validation conditional on the scenario. The validation here was not intended to be scenario specific.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have created a story to add the scenario based checks DT-897
generateValidPolUNLocationCode(), | ||
generateValidPodUNLocationCode()); | ||
CarrierScenarioParameters carrierScenarioParameters = switch (scenarioType) { | ||
case REGULAR, REGULAR_SHIPPER_OWNED -> new CarrierScenarioParameters("Example Carrier Service", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the previous way of providing a service name other this static Example Carrier Service
string (applies to more lines than I highlighted)
No description provided.