X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowjava%2Fopenflow-protocol-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fserialization%2Ffactories%2FPacketOutInputMessageFactoryTest.java;fp=openflowjava%2Fopenflow-protocol-impl%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fopenflowjava%2Fprotocol%2Fimpl%2Fserialization%2Ffactories%2FPacketOutInputMessageFactoryTest.java;h=e0e3def16b35b68721ce18cb8fc1788aaab71056;hb=cafed852405f3379d1f5df776176a2d119b04def;hp=60ee5210f1e68fdaddffd0fceb27bc08091b0bb8;hpb=df06d9f075927d7ae415c303ba20675a7ba9d3f5;p=openflowplugin.git diff --git a/openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PacketOutInputMessageFactoryTest.java b/openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PacketOutInputMessageFactoryTest.java index 60ee5210f1..e0e3def16b 100644 --- a/openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PacketOutInputMessageFactoryTest.java +++ b/openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/PacketOutInputMessageFactoryTest.java @@ -10,10 +10,8 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.factories; import io.netty.buffer.ByteBuf; import io.netty.buffer.UnpooledByteBufAllocator; - import java.util.ArrayList; import java.util.List; - import org.junit.Assert; import org.junit.Before; import org.junit.Test; @@ -35,8 +33,9 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.PacketOutInputBuilder; /** - * @author timotej.kubas + * Unit tests for PacketOutInputMessageFactory. * + * @author timotej.kubas */ public class PacketOutInputMessageFactoryTest { private static final byte MESSAGE_TYPE = 13; @@ -46,7 +45,7 @@ public class PacketOutInputMessageFactoryTest { private OFSerializer packetOutFactory; /** - * Initializes serializer registry and stores correct factory in field + * Initializes serializer registry and stores correct factory in field. */ @Before public void startUp() { @@ -57,8 +56,7 @@ public class PacketOutInputMessageFactoryTest { } /** - * Testing of {@link PacketOutInputMessageFactory} for correct translation from POJO - * @throws Exception + * Testing of {@link PacketOutInputMessageFactory} for correct translation from POJO. */ @Test public void testPacketOutInputMessage() throws Exception { @@ -66,7 +64,7 @@ public class PacketOutInputMessageFactoryTest { BufferHelper.setupHeader(builder, EncodeConstants.OF13_VERSION_ID); builder.setBufferId(256L); builder.setInPort(new PortNumber(256L)); - List actions = new ArrayList<>(); + final List actions = new ArrayList<>(); ActionBuilder actionBuilder = new ActionBuilder(); PushVlanCaseBuilder pushVlanCaseBuilder = new PushVlanCaseBuilder(); PushVlanActionBuilder pushVlanBuilder = new PushVlanActionBuilder(); @@ -102,8 +100,7 @@ public class PacketOutInputMessageFactoryTest { } /** - * Testing of {@link PacketOutInputMessageFactory} for correct translation from POJO - * @throws Exception + * Testing of {@link PacketOutInputMessageFactory} for correct translation from POJO. */ @Test public void testPacketOutInputWithNoData() throws Exception { @@ -123,4 +120,4 @@ public class PacketOutInputMessageFactoryTest { out.skipBytes(16); // skip packet out message to data index Assert.assertTrue("Unexpected data", out.readableBytes() == 0); } -} \ No newline at end of file +}