Updated extension registration keys
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / util / OF13InstructionsSerializerTest.java
index 5dc7b2a48f04ea24e0f9ffebbcd5e37264b253a9..902f8b5819fe638ce21843fa5686018e429ef7d3 100644 (file)
@@ -17,7 +17,9 @@ import org.junit.Assert;
 import org.junit.Before;\r
 import org.junit.Test;\r
 import org.opendaylight.openflowjava.protocol.api.extensibility.SerializerRegistry;\r
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
 import org.opendaylight.openflowjava.protocol.impl.serialization.SerializerRegistryImpl;\r
+import org.opendaylight.openflowjava.util.ByteBufUtils;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.ActionsInstruction;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.ActionsInstructionBuilder;\r
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.augments.rev131002.EthertypeAction;\r
@@ -142,8 +144,8 @@ public class OF13InstructionsSerializerTest {
         instructions.add(builder.build());\r
         \r
         ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer();\r
-        ListSerializer.serializeList(instructions, EnhancedTypeKeyMakerFactory\r
-                .createInstructionKeyBuilder(EncodeConstants.OF13_VERSION_ID), registry, out);\r
+        ListSerializer.serializeList(instructions, TypeKeyMakerFactory\r
+                .createInstructionKeyMaker(EncodeConstants.OF13_VERSION_ID), registry, out);\r
         \r
         Assert.assertEquals("Wrong instruction type", 1, out.readUnsignedShort());\r
         Assert.assertEquals("Wrong instruction length", 8, out.readUnsignedShort());\r