Yuta HIGUCHI
Committed by Ray Milkey

register DefaultGroupId to Kryo

Change-Id: I650482164acf4b97f1bcd1a1633806a3b526a14d
......@@ -31,6 +31,7 @@ import org.onlab.onos.cluster.LeadershipEvent;
import org.onlab.onos.cluster.NodeId;
import org.onlab.onos.cluster.RoleInfo;
import org.onlab.onos.core.DefaultApplicationId;
import org.onlab.onos.core.DefaultGroupId;
import org.onlab.onos.mastership.MastershipTerm;
import org.onlab.onos.net.ConnectPoint;
import org.onlab.onos.net.DefaultAnnotations;
......@@ -298,6 +299,7 @@ public final class KryoNamespaces {
.register(ReadStatus.class)
.register(WriteStatus.class)
.register(VersionedValue.class)
.register(DefaultGroupId.class)
.build();
......
......@@ -26,6 +26,7 @@ import org.junit.BeforeClass;
import org.junit.Test;
import org.onlab.onos.cluster.NodeId;
import org.onlab.onos.cluster.RoleInfo;
import org.onlab.onos.core.DefaultGroupId;
import org.onlab.onos.mastership.MastershipTerm;
import org.onlab.onos.net.Annotations;
import org.onlab.onos.net.ConnectPoint;
......@@ -337,6 +338,12 @@ public class KryoSerializerTest {
}
@Test
public void testDefaultGroupId() {
testSerializedEquals(new DefaultGroupId(99));
}
@Test
public void testAnnotations() {
// Annotations does not have equals defined, manually test equality
final byte[] a1Bytes = serializer.encode(A1);
......