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%2FSetConfigMessageFactoryTest.java;h=c188b593d4a5b0ceac5915653d2a5e59cd3f2312;hb=07de1ed897da9d7dc70c6d550f38c59339ed751e;hp=bd41db6ee10433015dceddbff8fcdcba8646e9f8;hpb=26aeaa7e2754b2cf4f6ad63055ab3ce34f68c961;p=openflowjava.git diff --git a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/SetConfigMessageFactoryTest.java b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/SetConfigMessageFactoryTest.java index bd41db6e..c188b593 100644 --- a/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/SetConfigMessageFactoryTest.java +++ b/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/SetConfigMessageFactoryTest.java @@ -47,7 +47,7 @@ public class SetConfigMessageFactoryTest { /** * Testing of {@link SetConfigMessageFactory} for correct translation from POJO - * @throws Exception + * @throws Exception */ @Test public void testSetConfigMessageV13() throws Exception { @@ -57,18 +57,18 @@ public class SetConfigMessageFactoryTest { builder.setFlags(flag); builder.setMissSendLen(10); SetConfigInput message = builder.build(); - + ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer(); setConfigFactory.serialize(message, out); - + BufferHelper.checkHeaderV13(out, MESSAGE_TYPE, MESSAGE_LENGTH); Assert.assertEquals("Wrong flags", SwitchConfigFlag.FRAGNORMAL.getIntValue(), out.readUnsignedShort()); Assert.assertEquals("Wrong missSendLen", 10, out.readUnsignedShort()); } - + /** * Testing of {@link SetConfigMessageFactory} for correct translation from POJO - * @throws Exception + * @throws Exception */ @Test public void testSetConfigMessageV10() throws Exception { @@ -78,10 +78,10 @@ public class SetConfigMessageFactoryTest { builder.setFlags(flag); builder.setMissSendLen(85); SetConfigInput message = builder.build(); - + ByteBuf out = UnpooledByteBufAllocator.DEFAULT.buffer(); setConfigFactory.serialize(message, out); - + BufferHelper.checkHeaderV10(out, MESSAGE_TYPE, MESSAGE_LENGTH); Assert.assertEquals("Wrong flags", SwitchConfigFlag.OFPCFRAGDROP.getIntValue(), out.readUnsignedShort()); Assert.assertEquals("Wrong missSendLen", 85, out.readUnsignedShort());