X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflow-protocol-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fserialization%2Ffactories%2FPortModInputMessageFactoryTest.java;fp=openflow-protocol-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fserialization%2Ffactories%2FPortModInputMessageFactoryTest.java;h=9617e61251597652b6a23d7c10636e0ba29b975f;hb=608331f22077157e3d006e336313ed6323a91e56;hp=e3d837986a64c1729c9eb83ee7be387f3f793eed;hpb=b0c862db7ff00227cc2f1bf23fad7b4c96d08493;p=openflowjava.git diff --git a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortModInputMessageFactoryTest.java b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortModInputMessageFactoryTest.java index e3d83798..9617e612 100644 --- a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortModInputMessageFactoryTest.java +++ b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PortModInputMessageFactoryTest.java @@ -8,6 +8,7 @@ import junit.framework.Assert; import org.junit.Test; import org.opendaylight.openflowjava.protocol.impl.deserialization.factories.HelloMessageFactoryTest; import org.opendaylight.openflowjava.protocol.impl.util.BufferHelper; +import org.opendaylight.openflowjava.protocol.impl.util.EncodeConstants; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev100924.MacAddress; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.PortConfig; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.common.types.rev130731.PortFeatures; @@ -33,7 +34,7 @@ public class PortModInputMessageFactoryTest { @Test public void testPortModInput() throws Exception { PortModInputBuilder builder = new PortModInputBuilder(); - BufferHelper.setupHeader(builder); + BufferHelper.setupHeader(builder, EncodeConstants.OF13_VERSION_ID); builder.setPortNo(new PortNumber(9L)); builder.setHwAddress(new MacAddress("08002700B0EB")); builder.setConfig(new PortConfig(true, false, true, false));