Comparing two objects with Groovy -


is there easy utility groovy give me difference of 2 different objects? i'm getting message via equals method aren't equal can find properties not being matched?

i found easy .properties attribute of object produced map listing property name key , value value.

once had difference between 2 maps , i've got answer looking for.

each of objects has .properties extension. works python .dict.

example

object1.properties - object2.properties 

so these show difference between object1 properties , object2 properties, there exist entity (key+value) differs within object2. if there properties in object2 not shown.


Comments