-
Notifications
You must be signed in to change notification settings - Fork 408
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
ObjectAppendingMarker in v7.0+ has no means to access the fieldValue as its object type #719
Comments
Hmmm... that's weird :-( After some investigations there is no actual reasons why We could simply change that method and make it return the value of the In addition, this method should ideally be made protected as well... |
…rming it into a String `ObjectAppendingMarker#getFieldValue()` should ideally return the value of the `fieldValue` property without transformation. This method is intended to be used by `SingleFieldAppendingMarker#tselfToString()` that already takes care of converting the value into a String. closes #719
@tim: is the proposed PR ok for you ? |
@brenuart that sounds good to me. Appreciate the quick response! Thanks |
…rming it into a String (#720) `ObjectAppendingMarker#getFieldValue()` should ideally return the value of the `fieldValue` property without transformation. This method is intended to be used by `SingleFieldAppendingMarker#tselfToString()` that already takes care of converting the value into a String. closes #719
Describe the bug
Have a test using AssertJ that accesses the field in ObjectAppendingMarker. It previously was called
object
and the test could access it as the correct object type. v7.0 renamed the field to befieldValue
and the AssertJ reflection favours thegetFieldValue
method over the field itself, and the getter always returns a string.Is there a way to get the fieldValue as its type rather than a string? I have a value that is a map, and having this converted to a string makes testing problematic.
The text was updated successfully, but these errors were encountered: