Add unit test for ReadyLocalTransaction NPE 63/31463/2
authorTom Pantelis <tpanteli@brocade.com>
Tue, 15 Dec 2015 17:46:48 +0000 (12:46 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 19 Dec 2015 06:01:20 +0000 (06:01 +0000)
commit4b21f0e68572b4209c1e572a241cf1ef3c699327
treea85292c339527f3c8215bb6388aeb868d48befe7
parent86a3188d6db1e7da2803a6b36daa2898fe045e45
Add unit test for ReadyLocalTransaction NPE

This is a follow-up to https://git.opendaylight.org/gerrit/#/c/31448/
to add a unit test for the scenario that caused a null modification
instance passed to ReadyLocalTransaction from
LocalThreePhaseCommitCohort. Basically the LocalThreePhaseCommitCohort
was created with a non-null operationError which was later erroneously
set to null.

Change-Id: I2891b5653b5d425079dbb99ce65e52d3ebbc6a27
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/AbstractTransactionProxyTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionProxyTest.java