JsonObject and friends should implement equals() to support unit testing
without forcing a call to toString() just to do a comparison.
assertThat(someJsonObject, is(someOtherJsonObject));
as opposed to
assertThat(someJsonObject.toString(),
is(someOtherJsonObject.toString()));
There's a patch for this at
http://code.google.com/p/google-gson/issues/detail?id=64&q=equals#c4
Original issue reported on code.google.com by emperorf...@gmail.com on 21 Aug 2010 at 12:05
Original issue reported on code.google.com by
emperorf...@gmail.com
on 21 Aug 2010 at 12:05