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%2Fmodification%2FMutableCompositeModificationTest.java;h=dfc78c0f0fba92ac1a5df7b10264abc12e63fcb2;hb=c1336f9b497bc6867536a24f629c3f0b002ccb2f;hp=7fac06c0f89d77ba51499c1d35d50948681eee5a;hpb=7ec296abdea94bbdc336276731ee545a2fb13e7c;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java index 7fac06c0f8..dfc78c0f0f 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/modification/MutableCompositeModificationTest.java @@ -10,6 +10,7 @@ package org.opendaylight.controller.cluster.datastore.modification; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; + import com.google.common.base.Optional; import org.apache.commons.lang.SerializationUtils; import org.junit.Test; @@ -43,9 +44,9 @@ public class MutableCompositeModificationTest extends AbstractModificationTest { @Test public void testSerialization() { YangInstanceIdentifier writePath = TestModel.TEST_PATH; - NormalizedNode writeData = ImmutableContainerNodeBuilder.create().withNodeIdentifier( - new YangInstanceIdentifier.NodeIdentifier(TestModel.TEST_QNAME)). - withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); + NormalizedNode writeData = ImmutableContainerNodeBuilder.create() + .withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(TestModel.TEST_QNAME)) + .withChild(ImmutableNodes.leafNode(TestModel.DESC_QNAME, "foo")).build(); YangInstanceIdentifier mergePath = TestModel.OUTER_LIST_PATH; NormalizedNode mergeData = ImmutableContainerNodeBuilder.create().withNodeIdentifier( @@ -58,7 +59,8 @@ public class MutableCompositeModificationTest extends AbstractModificationTest { compositeModification.addModification(new MergeModification(mergePath, mergeData)); compositeModification.addModification(new DeleteModification(deletePath)); - MutableCompositeModification clone = (MutableCompositeModification) SerializationUtils.clone(compositeModification); + MutableCompositeModification clone = (MutableCompositeModification) + SerializationUtils.clone(compositeModification); assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, clone.getVersion());