X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fpersisted%2FShardDataTreeSnapshotTest.java;h=9e05cf4860d5e3faaf7d16144e675f5cc207a3d8;hp=333f3e9b247528a5d79805359f44c1965d7e9288;hb=refs%2Fchanges%2F14%2F82314%2F25;hpb=9d6b18257717db4f6f722422ee3224154150cbf7 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java index 333f3e9b24..9e05cf4860 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/persisted/ShardDataTreeSnapshotTest.java @@ -49,7 +49,7 @@ public class ShardDataTreeSnapshotTest { ShardDataTreeSnapshot deserialized; try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()))) { - deserialized = ShardDataTreeSnapshot.deserialize(in); + deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot(); } Optional> actualNode = deserialized.getRootNode(); @@ -75,7 +75,7 @@ public class ShardDataTreeSnapshotTest { ShardDataTreeSnapshot deserialized; try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()))) { - deserialized = ShardDataTreeSnapshot.deserialize(in); + deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot(); } Optional> actualNode = deserialized.getRootNode(); @@ -91,7 +91,7 @@ public class ShardDataTreeSnapshotTest { private final String data; - TestShardDataTreeSnapshotMetadata(String data) { + TestShardDataTreeSnapshotMetadata(final String data) { this.data = data; } @@ -111,7 +111,7 @@ public class ShardDataTreeSnapshotTest { } @Override - public boolean equals(Object obj) { + public boolean equals(final Object obj) { return obj instanceof TestShardDataTreeSnapshotMetadata && data.equals(((TestShardDataTreeSnapshotMetadata)obj).data); } @@ -123,17 +123,17 @@ public class ShardDataTreeSnapshotTest { public Proxy() { } - Proxy(String data) { + Proxy(final String data) { this.data = data; } @Override - public void writeExternal(ObjectOutput out) throws IOException { + public void writeExternal(final ObjectOutput out) throws IOException { out.writeObject(data); } @Override - public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { + public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException { data = (String) in.readObject(); }