Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Move jolokia to top-level directory
[controller.git]
/
opendaylight
/
md-sal
/
sal-distributed-datastore
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
datastore
/
persisted
/
ShardDataTreeSnapshotTest.java
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 9e05cf4860d5e3faaf7d16144e675f5cc207a3d8..5adf2cb6bd1a0a3da93ebdecb234c0a8f62dc56c 100644
(file)
--- 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
@@
-47,8
+47,11
@@
public class ShardDataTreeSnapshotTest {
snapshot.serialize(out);
}
snapshot.serialize(out);
}
+ final byte[] bytes = bos.toByteArray();
+ assertEquals(236, bytes.length);
+
ShardDataTreeSnapshot deserialized;
ShardDataTreeSnapshot deserialized;
- try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(b
os.toByteArray()
))) {
+ try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(b
ytes
))) {
deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot();
}
deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot();
}
@@
-73,8
+76,11
@@
public class ShardDataTreeSnapshotTest {
snapshot.serialize(out);
}
snapshot.serialize(out);
}
+ final byte[] bytes = bos.toByteArray();
+ assertEquals(384, bytes.length);
+
ShardDataTreeSnapshot deserialized;
ShardDataTreeSnapshot deserialized;
- try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(b
os.toByteArray()
))) {
+ try (ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(b
ytes
))) {
deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot();
}
deserialized = ShardDataTreeSnapshot.deserialize(in).getSnapshot();
}