Fix bug in test for distributed datastore 40/9540/2
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 31 Jul 2014 14:50:37 +0000 (16:50 +0200)
committerMaros Marsalek <mmarsale@cisco.com>
Fri, 1 Aug 2014 06:40:47 +0000 (06:40 +0000)
commit2c704e63959bada91b79b0ddc8bd028c33019727
tree24eb4ea17436eb90209581863cb5ad87f8f9f8d8
parentc222e37f2a0f0f3f6266242fbea2d3b018f4e6e3
Fix bug in test for distributed datastore

The test compared two normalized nodes using toString representation.
This is wrong since these nodes contain hash map and their order(also toString) changes depending on their content.
THe test compared two normalized nodes that did not contain same values. There was Integer in one and Long in the other.

The test failed for me on (due to hash map ordering):
java version "1.7.0_60"
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)

Change-Id: Ib72c871077f79cff8327da9c57cc1faa8677a298
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/CarsModel.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/PeopleModel.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/md/cluster/datastore/model/SampleModelsTest.java