X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FReadyLocalTransactionSerializerTest.java;h=2abb05d360a088fe2c206d1f55f2f20d51565a7e;hb=HEAD;hp=ea1b00d49dba4c58c651490ecc32e114f99d4ee3;hpb=e84f63ee098fff5b02cbce1281ca0d1208f966fa;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializerTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializerTest.java index ea1b00d49d..2abb05d360 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializerTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializerTest.java @@ -39,8 +39,8 @@ import org.opendaylight.yangtools.yang.data.tree.impl.di.InMemoryDataTreeFactory * * @author Thomas Pantelis */ +@Deprecated(since = "9.0.0", forRemoval = true) public class ReadyLocalTransactionSerializerTest extends AbstractTest { - @Test public void testToAndFromBinary() throws NotSerializableException { DataTree dataTree = new InMemoryDataTreeFactory().create( @@ -74,8 +74,7 @@ public class ReadyLocalTransactionSerializerTest extends AbstractTest { assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, batched.getVersion()); assertTrue("isReady", batched.isReady()); assertTrue("isDoCommitOnReady", batched.isDoCommitOnReady()); - assertTrue("participatingShardNames present", batched.getParticipatingShardNames().isPresent()); - assertEquals("participatingShardNames", shardNames, batched.getParticipatingShardNames().get()); + assertEquals("participatingShardNames", Optional.of(shardNames), batched.getParticipatingShardNames()); List batchedMods = batched.getModifications(); assertEquals("getModifications size", 2, batchedMods.size());