-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
-
False
-
False
-
Undefined
-
-
cnicolai@redhat.com
In most tests the object marshaller is used instead of their specific marshaller since in the marshaller array it is quite at the top. This occurs just in the test since some sorting done in the original functionality when retrieving the marshaller list is not present in test code - but once sorting and correct marshallers are used, date test fails when comparing the date before marshalling and the date after having gone through being marshalled and unmarshalled.
Problem is: only date seconds are marshalled into protobuf Timestamp - not the millisecond part => after marshalling/unmarshalling process that millisecond part is missing causing the two dates - the original and the processed - not to be the same
Question: what to fix: test comparison (if the marshalling only for seconds is what is wanted) or ProtobufDateMarshallerStrategy.marshall() function to also take the milliseconds into account?