jasonzue / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Implement equals() to perform deep-value-comparison #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 3 Sep 2010 at 6:58