-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add argument conversions for Currency, Locale, and URI #1221
Conversation
@@ -184,4 +182,26 @@ public Object convert(String source, Class<?> targetType) throws Exception { | |||
} | |||
} | |||
|
|||
static class StringToJavaMiscConverter implements StringToObjectConverter { |
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.
Duplicate code with StringToPrimitiveConverter
class. Maybe we can merge with StringToPrimitiveConverter
class by changing its name?
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 didn't quite follow you.
Can you please expound?
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.
@sbrannen If you look at StringToPrimitiveConverter
and this class. They are very similar. Maybe, we can use a single class instead of two. I am not sure what to do.
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.
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 agree: let's keep them separate.
I don't think the minor code duplication is an issue here (yet).
699ba4d
to
96ee36a
Compare
Thanks for the PR! Please also update the Javadoc of |
@marcphilipp I have updated Javadoc. @sbrannen Added Locale as well. |
FYI: slated for 5.1 M2 |
@hisener, can you please document the changes in the User Guide and Release Notes and update this PR? Thanks! |
This has been merged into Thanks! |
Thanks, guys! 😀 |
Overview
Add argument conversions for Currency, Locale, and URI
Related issue: #1218
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations