-
Notifications
You must be signed in to change notification settings - Fork 18
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
DSP-932: Don't allow missing StringLiteralV2 value if language tag given #1746
DSP-932: Don't allow missing StringLiteralV2 value if language tag given #1746
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.
Looks good, thank you!
|
||
val thrown = the [BadRequestException] thrownBy payload.parseJson.convertTo[CreateListApiRequestADM] | ||
|
||
thrown.getMessage should equal ("String value is missing.") |
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'm generally reluctant to check the contents of exception messages in tests, because exception messages often change over time, and then it's annoying to have to fix a lot of tests. But it's up to you.
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.
@benjamingeer yeah, I need to check them. It is my paranoia ;-)
@benjamingeer Thanks for reviewing this. I just added a general test for directly checking |
OK that looks good! |
resolves DSP-932
closes #1418