Diff.toString()
returns only first comparison result
#232
Labels
Milestone
Diff.toString()
returns only first comparison result
#232
That's my user story:
I have a test for custom xml marshaller in my work project. Test is written in a way similar to XmlUnit user guide. Last line of my test was:
After some test sources refactoring test was failed with message that one of xml tag actual values diffs with expected one.
I fixed the expected value in xml sample and was expecting that test will be green this time.
But it wasn't.
It failed with another message about difference in value of another xml tag.
I found a solution in a assertion refactoring:
With that refactoring I was able to found all differencies simultaneously and fix them in a one try.
But I think that it would be better to return all failed comparison results in
Diff.toString()
method.First of all it's a user guide recommendations to write assertions with
toString()
invocation.Also this
toString()
behavior would matchObject.toString()
javadoc which saysOnly one comparison result cannot be full string representation of the object.
The text was updated successfully, but these errors were encountered: