Sho SHIMIZU
Committed by Gerrit Code Review

Registier Frequency to Kryo

Change-Id: I4e91c4f48197ed2aa46d6458e1f397eea3468b8f
......@@ -210,6 +210,7 @@ public final class KryoNamespaces {
.register(new Ip6AddressSerializer(), Ip6Address.class)
.register(new MacAddressSerializer(), MacAddress.class)
.register(VlanId.class)
.register(Frequency.class)
.build();
/**
......
......@@ -343,6 +343,12 @@ public class KryoSerializerTest {
testSerializable(new DefaultLinkResourceAllocations(request, allocations));
}
@Test
public void testFrequency() {
testSerializedEquals(Frequency.ofGHz(100));
}
@Test
public void testLambdaConstraint() {
testSerializable(new LambdaConstraint(Lambda.valueOf(1)));
......