-
Notifications
You must be signed in to change notification settings - Fork 99
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
[#433] SimpleToString with dep-free execution #446
base: master
Are you sure you want to change the base?
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.
For the test data, we should validate against the range for all types.
For example for long: null, min, max and zero values
<xs:element name="longMin" type="xs:long" minOccurs="0">
<xs:element name="longMax" type="xs:long" minOccurs="0">
<xs:element name="longNull" type="xs:long" minOccurs="0">
<xs:element name="longZero" type="xs:long" minOccurs="0">
|
||
final Object object = createContext().createUnmarshaller().unmarshal(sample); | ||
if (object instanceof JAXBElement) { | ||
System.out.println(((JAXBElement<?>) object).getValue().toString()); |
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.
We should compare with the expected String output here
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.
@laurentschoelens will you have some time to look at updating the test check? I think this is a good change to get into next v4.x release!
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 need to do rework here before merging this. If I can, it'll be a GO for 4.0.1, or at least a reduced version of it (removing the way we format java.util.Date
and java.time
classes)
Fixes #433
Adds a SimpleToString plugin with customizations