-
Notifications
You must be signed in to change notification settings - Fork 478
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
Request for annotation for null values on pojo fields of type String. #693
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #693 +/- ##
============================================
+ Coverage 88.26% 88.31% +0.04%
Complexity 730 730
============================================
Files 69 69
Lines 2540 2558 +18
Branches 268 277 +9
============================================
+ Hits 2242 2259 +17
Misses 210 210
- Partials 88 89 +1
Continue to review full report at Codecov.
|
This reverts commit 9719e0c.
Anyone with the ability to re-run jobs mind running the one that failed? All the others passed. |
@BrentonPoke I restarted the tests, they now pass. I am not an expert in this library, I took a quick look at the new code while restarting the tests. It seems to me that
|
Thanks for responding, I'm taking another look at this since I originally did it early in the morning, but the comment here is what was agreed upon as the desired change. I went off the end of this discussion that resolved the need-more-info label. For the test, I did struggle a bit in terms of trying to develop a test to check that the value is set to the default. I'm trying a Black Box testing approach, but this is my first time processing an annotation, so I'm doing this PR to learn how. I'm changing the processing of the annotation to only trigger on a String variable, but the reason I didn't include numerical values is that it wasn't part of the request agreed upon at the end of #661. |
Ok, I think it's ready for another look, if anyone wants. |
A
@Default
annotation was requested to protect pojos coming back with null strings in #661. I interpreted it to mean something along the lines of what's in the unit test. Would appreciate feedback.