commit | dee7871c43799ba9685c702e7c51a8500047f5f5 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Apr 30 09:33:52 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Apr 30 18:11:13 2015 +0000 |
tree | 2dde0efdbd63126573f7535e5db06744d3076d5f | |
parent | c00295cb91ee1f7302b8519920a7ee68476f5839 [diff] |
Registier Frequency to Kryo Change-Id: I4e91c4f48197ed2aa46d6458e1f397eea3468b8f
diff --git a/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java b/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java index a918e2d..034bcaf 100644 --- a/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java +++ b/core/store/serializers/src/main/java/org/onosproject/store/serializers/KryoNamespaces.java
@@ -210,6 +210,7 @@ .register(new Ip6AddressSerializer(), Ip6Address.class) .register(new MacAddressSerializer(), MacAddress.class) .register(VlanId.class) + .register(Frequency.class) .build(); /**
diff --git a/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java b/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java index 379249d..c07448f 100644 --- a/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java +++ b/core/store/serializers/src/test/java/org/onosproject/store/serializers/KryoSerializerTest.java
@@ -343,6 +343,12 @@ testSerializable(new DefaultLinkResourceAllocations(request, allocations)); } + + @Test + public void testFrequency() { + testSerializedEquals(Frequency.ofGHz(100)); + } + @Test public void testLambdaConstraint() { testSerializable(new LambdaConstraint(Lambda.valueOf(1)));