fixed assertion error in ShardedDOMDataWriteTransactionTest 56/40856/2
authorPeter Nosal <peter.nosal@pantheon.tech>
Mon, 27 Jun 2016 08:50:59 +0000 (10:50 +0200)
committerPeter Nosal <peter.nosal@pantheon.tech>
Mon, 27 Jun 2016 09:58:25 +0000 (09:58 +0000)
commit412bdea08cc2b4ab1bc8da9a3cf000e0a051da5b
tree8be58bdb88375a1de732d1cee0e3d4fc883eb200
parentc452b0da50b4de6a41932855b97aa3b517b4879c
fixed assertion error in ShardedDOMDataWriteTransactionTest

getIdentifier() method returns String (as a name) and counter in form
of incremented Atomic long in every new instantiation. Before this
change test exactly expected to have an 0 and then 1 at counter side,
but if some other test create an instance of
ShardedDOMDataWriteTransaction before this test, counter will alredy be
greater than 0 so presumably that is what happend and test is order
dependant. I removed this dependency and now test is checking for
non-equality of two differend object identifiers, so does not matter
what is at counter side at beggining of this test.

Change-Id: I65401ea99bc7d8d94e4ef1fc9b52a1b9909f63fe
Signed-off-by: Peter Nosal <peter.nosal@pantheon.tech>
dom/mdsal-dom-broker/src/test/java/org/opendaylight/mdsal/dom/broker/ShardedDOMDataWriteTransactionTest.java