Fix checkstyle violations in openflow-protocol-impl - part 11 92/67392/2
authorTom Pantelis <tompantelis@gmail.com>
Sun, 21 Jan 2018 02:05:03 +0000 (21:05 -0500)
committerTom Pantelis <tompantelis@gmail.com>
Sat, 27 Jan 2018 02:30:27 +0000 (21:30 -0500)
Many violations - more to follow

Change-Id: Iaa832ec597a543b1d963cd58307d7fed05f50720
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
34 files changed:
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpOpSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpShaSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpSpaSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpThaSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmArpTpaSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmEthDstSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmEthSrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmEthTypeSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIcmpv4CodeSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIcmpv4TypeSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIcmpv6CodeSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIcmpv6TypeSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpDscpSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpProtoSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv4DstSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv4SrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6ExtHdrSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6NdSllSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6NdTllSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmIpv6SrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMetadataSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMplsBosSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMplsLabelSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmMplsTcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmPbbIsidSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmSctpDstSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmSctpSrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmTcpDstSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmTcpSrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmTunnelIdSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmUdpDstSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmUdpSrcSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmVlanPcpSerializerTest.java
openflowjava/openflow-protocol-impl/src/test/java/org/opendaylight/openflowjava/protocol/impl/serialization/match/OxmVlanVidSerializerTest.java

index 322d17868fc379786041c617bb0ae4db595f9a65..7c9a60ab55a8790407d3d58b83d21f4e6ba0fede 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.arp.op._case.ArpOpBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmArpOpSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmArpOpSerializerTest {
 
     OxmArpOpSerializer serializer = new OxmArpOpSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmArpOpSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmArpOpSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmArpOpSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmArpOpSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmArpOpSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index a3100d65b8ab4b943383e29fe7977cb022af6859..e36438b98e7abb99d9b52ee6d7baab9c5c7502cd 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.arp.sha._case.ArpShaBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmArpShaSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmArpShaSerializerTest {
 
     OxmArpShaSerializer serializer = new OxmArpShaSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmArpShaSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmArpShaSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         ArpShaCaseBuilder casebuilder = new ArpShaCaseBuilder();
         ArpShaBuilder valueBuilder = new ArpShaBuilder();
         if (hasMask) {
index 5e5fcc4b7c22b3e77bd44c554545a4c0b4ec3207..c5f674083a68d4e36c8b43e935278d0c394a05a5 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.arp.spa._case.ArpSpaBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmArpSpaSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmArpSpaSerializerTest {
 
     OxmArpSpaSerializer serializer = new OxmArpSpaSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmArpSpaSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         ArpSpaCaseBuilder casebuilder = new ArpSpaCaseBuilder();
         ArpSpaBuilder valueBuilder = new ArpSpaBuilder();
         if (hasMask) {
index 062178cee542f8183be2b70910d097fd4e1c0750..b591ea1853fb8bc64bc55a45b571883f248b0787 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.arp.tha._case.ArpThaBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmArpThaSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmArpThaSerializerTest {
 
     OxmArpThaSerializer serializer = new OxmArpThaSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmArpThaSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmArpThaSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         ArpThaCaseBuilder casebuilder = new ArpThaCaseBuilder();
         ArpThaBuilder valueBuilder = new ArpThaBuilder();
         if (hasMask) {
index 11b64a33f32109bb044d29f0a68e3746852343cb..de71662063f3d249fdb5b511fc66f468263049f5 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.arp.tpa._case.ArpTpaBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmArpTpaSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmArpTpaSerializerTest {
 
     OxmArpTpaSerializer serializer = new OxmArpTpaSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmArpTpaSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         ArpTpaCaseBuilder casebuilder = new ArpTpaCaseBuilder();
         ArpTpaBuilder valueBuilder = new ArpTpaBuilder();
         if (hasMask) {
index 137c47aa1497e0b7536a6d7f2b0bdd690277eadb..722481d4e7db169d3c3a68a08bf15f65da3438fc 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.eth.dst._case.EthDstBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmEthDstSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmEthDstSerializerTest {
 
     OxmEthDstSerializer serializer = new OxmEthDstSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmEthDstSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmEthDstSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         EthDstCaseBuilder casebuilder = new EthDstCaseBuilder();
         EthDstBuilder valueBuilder = new EthDstBuilder();
         if (hasMask) {
index f171505a030c8465528377d0ef93566f85dc5956..867d1e234e4dee8581c060c79b5c651eb74a7a03 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.eth.src._case.EthSrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmEthSrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmEthSrcSerializerTest {
 
     OxmEthSrcSerializer serializer = new OxmEthSrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmEthSrcSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         EthSrcCaseBuilder casebuilder = new EthSrcCaseBuilder();
         EthSrcBuilder valueBuilder = new EthSrcBuilder();
         if (hasMask) {
index 9bb5c9243d21fce6e24df112cde3bc37a15358e7..eec39173082cdaef1eaed52f2512f73a1d120dcb 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.eth.type._case.EthTypeBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmEthTypeSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmEthTypeSerializerTest {
 
     OxmEthTypeSerializer serializer = new OxmEthTypeSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmEthTypeSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmEthTypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmEthTypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmEthTypeSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -109,4 +110,4 @@ public class OxmEthTypeSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 6004776e4e015ab5709de77603bded12cbdad64c..4aaea0543a4498ce0ab2134f54de0f3138d79a15 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.icmpv4.code._case.Icmpv4CodeBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIcmpv4CodeSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIcmpv4CodeSerializerTest {
 
     OxmIcmpv4CodeSerializer serializer = new OxmIcmpv4CodeSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmIcmpv4CodeSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmIcmpv4CodeSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmIcmpv4CodeSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmIcmpv4CodeSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmIcmpv4CodeSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index d62c45681b2cd03a79e03a3240b572e34de8a88d..a35d47d2d1136c0267ec575461a0b0e1b0196fde 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.icmpv4.type._case.Icmpv4TypeBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIcmpv4TypeSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIcmpv4TypeSerializerTest {
 
     OxmIcmpv4TypeSerializer serializer = new OxmIcmpv4TypeSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmIcmpv4TypeSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmIcmpv4TypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmIcmpv4TypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmIcmpv4TypeSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmIcmpv4TypeSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 6706a9d2a6888ca497a7a3eba438bd061a52fdc9..8019f5c7cf6ba78b64fa373dd61d2d5dad99174a 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.icmpv6.code._case.Icmpv6CodeBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIcmpv6CodeSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIcmpv6CodeSerializerTest {
 
     OxmIcmpv6CodeSerializer serializer = new OxmIcmpv6CodeSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmIcmpv6CodeSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmIcmpv6CodeSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmIcmpv6CodeSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmIcmpv6CodeSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmIcmpv6CodeSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 7f0ad5fb89d102e30824308ab304e9daca192114..82bdbfd51ea835e832f2af40a73efcb79cf34363 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.icmpv6.type._case.Icmpv6TypeBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIcmpv6TypeSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIcmpv6TypeSerializerTest {
 
     OxmIcmpv6TypeSerializer serializer = new OxmIcmpv6TypeSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmIcmpv6TypeSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmIcmpv6TypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmIcmpv6TypeSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmIcmpv6TypeSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmIcmpv6TypeSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index b7cc4aef1d192c921f98bca29b2a0b4111ff1321..9d0d96e7acdb8038ebcc29efb7b576c6b79d782a 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ip.dscp._case.IpDscpBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpDscpSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpDscpSerializerTest {
 
     OxmIpDscpSerializer serializer = new OxmIpDscpSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmIpDscpSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmIpDscpSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmIpDscpSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmIpDscpSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index 6edde4deeebdb40cd8d26eccfc1a7b36d34637f3..1e053bd854794e2a4f59c1c25cf5bba228cadcd4 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ip.proto._case.IpProtoBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpProtoSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpProtoSerializerTest {
 
     OxmIpProtoSerializer serializer = new OxmIpProtoSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmIpProtoSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmIpProtoSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmIpProtoSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmIpProtoSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmIpProtoSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 233a546988a4b49a18f3cff3763db21570c3ebb7..4b20c77967ad1e4c168d306484e5f45faec91f4f 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv4.dst._case.Ipv4DstBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv4DstSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv4DstSerializerTest {
 
     OxmIpv4DstSerializer serializer = new OxmIpv4DstSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmIpv4DstSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         Ipv4DstCaseBuilder casebuilder = new Ipv4DstCaseBuilder();
         Ipv4DstBuilder valueBuilder = new Ipv4DstBuilder();
         if (hasMask) {
index 286cbab65f01e8c8cd63167017115e233a180a95..a6789c06dd6606fec7c7709cf7a56bf616a5a621 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv4.src._case.Ipv4SrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv4SrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv4SrcSerializerTest {
 
     OxmIpv4SrcSerializer serializer = new OxmIpv4SrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -50,7 +51,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -71,7 +72,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -85,7 +86,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -99,7 +100,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -107,7 +108,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -115,7 +116,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -123,7 +124,7 @@ public class OxmIpv4SrcSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         Ipv4SrcCaseBuilder casebuilder = new Ipv4SrcCaseBuilder();
         Ipv4SrcBuilder valueBuilder = new Ipv4SrcBuilder();
         if (hasMask) {
index b775e516b79c3d04fb26e1590a42c912a1c58e54..57dfc2e36bdb4063df482c15eec885a0a0cfb8ca 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv6.exthdr._case.Ipv6ExthdrBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv6ExtHdrSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv6ExtHdrSerializerTest {
 
     OxmIpv6ExtHdrSerializer serializer = new OxmIpv6ExtHdrSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -49,7 +50,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -68,7 +69,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -82,7 +83,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -96,7 +97,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -104,7 +105,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -112,7 +113,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -120,7 +121,7 @@ public class OxmIpv6ExtHdrSerializerTest {
     }
 
     private static MatchEntryBuilder prepareIpv6ExtHdrMatchEntry(boolean hasMask, Ipv6ExthdrFlags flags) {
-        MatchEntryBuilder builder = prepareIpv6ExtHdrHeader(hasMask);
+        final MatchEntryBuilder builder = prepareIpv6ExtHdrHeader(hasMask);
         Ipv6ExthdrCaseBuilder casebuilder = new Ipv6ExthdrCaseBuilder();
         Ipv6ExthdrBuilder valueBuilder = new Ipv6ExthdrBuilder();
         if (hasMask) {
@@ -151,4 +152,4 @@ public class OxmIpv6ExtHdrSerializerTest {
             assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
         }
     }
-}
\ No newline at end of file
+}
index 5a1b6ca039a15b56ea4fde86cfbcf06547c4ff1d..063a51c3c937c7cb3a8d2b7ef09405504566ab26 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv6.nd.sll._case.Ipv6NdSllBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv6NdSllSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv6NdSllSerializerTest {
 
     OxmIpv6NdSllSerializer serializer = new OxmIpv6NdSllSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -50,7 +51,7 @@ public class OxmIpv6NdSllSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -64,7 +65,7 @@ public class OxmIpv6NdSllSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -72,7 +73,7 @@ public class OxmIpv6NdSllSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -80,7 +81,7 @@ public class OxmIpv6NdSllSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index 8d6d95ccfe081f634a8943f50146a9288a57cfd4..85fb22ba0ea07f18634097ad5dce1da25dcaa652 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv6.nd.tll._case.Ipv6NdTllBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv6NdTllSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv6NdTllSerializerTest {
 
     OxmIpv6NdTllSerializer serializer = new OxmIpv6NdTllSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -50,7 +51,7 @@ public class OxmIpv6NdTllSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -64,7 +65,7 @@ public class OxmIpv6NdTllSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -72,7 +73,7 @@ public class OxmIpv6NdTllSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -80,7 +81,7 @@ public class OxmIpv6NdTllSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index 386d1cd45178bc3b21a612ec3b326bc46614da5a..9f5181f40635472c7663527272f09991bd7dca70 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -25,15 +25,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.ipv6.src._case.Ipv6SrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmIpv6SrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmIpv6SrcSerializerTest {
 
     OxmIpv6SrcSerializer serializer = new OxmIpv6SrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -55,7 +56,7 @@ public class OxmIpv6SrcSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -77,7 +78,7 @@ public class OxmIpv6SrcSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, String value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         Ipv6SrcCaseBuilder caseBuilder = new Ipv6SrcCaseBuilder();
         Ipv6SrcBuilder srcBuilder = new Ipv6SrcBuilder();
         srcBuilder.setIpv6Address(new Ipv6Address(value));
index 3540829a5195b6b6e14f9eae72e1bf08a9f2e936..93c6258f6ec458c78ce28e7c4d5c1e3414cd9c98 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.metadata._case.MetadataBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmMetadataSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmMetadataSerializerTest {
 
     OxmMetadataSerializer serializer = new OxmMetadataSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -49,7 +50,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -70,7 +71,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -84,7 +85,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -98,7 +99,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -106,7 +107,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -114,7 +115,7 @@ public class OxmMetadataSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -122,7 +123,7 @@ public class OxmMetadataSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, byte[] value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         MetadataCaseBuilder casebuilder = new MetadataCaseBuilder();
         MetadataBuilder valueBuilder = new MetadataBuilder();
         if (hasMask) {
@@ -153,4 +154,4 @@ public class OxmMetadataSerializerTest {
             assertEquals("Wrong length", EncodeConstants.SIZE_OF_LONG_IN_BYTES, buffer.readUnsignedByte());
         }
     }
-}
\ No newline at end of file
+}
index da0390e496a7c04893bd5925406dae7bc116fa53..f26a4fb10f7a9dbb9b6d3380f5e2ebdd8dd75ff5 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.mpls.bos._case.MplsBosBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmMplsBosSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmMplsBosSerializerTest {
 
     OxmMplsBosSerializer serializer = new OxmMplsBosSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmMplsBosSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmMplsBosSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmMplsBosSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmMplsBosSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmMplsBosSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 4557be2fc50563657a1a6bd2cf413e09b92cf8bc..b2b927d5eb9c8620aa65d0b0e9a7d2832cd2006c 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.mpls.label._case.MplsLabelBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmMplsLabelSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmMplsLabelSerializerTest {
 
     OxmMplsLabelSerializer serializer = new OxmMplsLabelSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmMplsLabelSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmMplsLabelSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmMplsLabelSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmMplsLabelSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmMplsLabelSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_INT_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 273f7a06f594ce18762016890660c9b3d9092411..093afad098a1e70bf669b0d4293bd8a812125573 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.mpls.tc._case.MplsTcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmMplsTcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmMplsTcSerializerTest {
 
     OxmMplsTcSerializer serializer = new OxmMplsTcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmMplsTcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmMplsTcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmMplsTcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmMplsTcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmMplsTcSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index 3d8db87f6db9e7dc60da9712fb39336a5d8b722e..bce8c3f77ff7d31c08a88bff99fda40dbcd32cb8 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.pbb.isid._case.PbbIsidBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmPbbIsidSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmPbbIsidSerializerTest {
 
     OxmPbbIsidSerializer serializer = new OxmPbbIsidSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -47,7 +48,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -65,7 +66,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -79,7 +80,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -93,7 +94,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -101,7 +102,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -109,7 +110,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -117,7 +118,7 @@ public class OxmPbbIsidSerializerTest {
     }
 
     private static MatchEntryBuilder preparePbbIsidMatchEntry(boolean hasMask, long value) {
-        MatchEntryBuilder builder = preparePbbIsidHeader(hasMask);
+        final MatchEntryBuilder builder = preparePbbIsidHeader(hasMask);
         PbbIsidCaseBuilder casebuilder = new PbbIsidCaseBuilder();
         PbbIsidBuilder valueBuilder = new PbbIsidBuilder();
         if (hasMask) {
@@ -148,4 +149,4 @@ public class OxmPbbIsidSerializerTest {
             assertEquals("Wrong length", EncodeConstants.SIZE_OF_3_BYTES, buffer.readUnsignedByte());
         }
     }
-}
\ No newline at end of file
+}
index b3a1fa900f444e70e3ff38db518551d96c2144e3..64d9e629dcb1b3f31cbe69790ab8f0735a92f911 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.sctp.dst._case.SctpDstBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmSctpDstSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmSctpDstSerializerTest {
 
     OxmSctpDstSerializer serializer = new OxmSctpDstSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmSctpDstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmSctpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmSctpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmSctpDstSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index 3c6eb1fba11781ae48720f51bafbd4faf9f756f8..607ee8fcead741c6383422f3204e5b6d42259fbf 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.sctp.src._case.SctpSrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmSctpSrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmSctpSrcSerializerTest {
 
     OxmSctpSrcSerializer serializer = new OxmSctpSrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmSctpSrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmSctpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmSctpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmSctpSrcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index c6033946444610202e4b75b256055647e878510c..fad1de067bc054b668ca124428e818b5e78f48a6 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.tcp.dst._case.TcpDstBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmTcpDstSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmTcpDstSerializerTest {
 
     OxmTcpDstSerializer serializer = new OxmTcpDstSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmTcpDstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmTcpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmTcpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmTcpDstSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index a0be555f295d96340967982190bc5fa39433ff26..b284e622fa04902920336b5cad339d547c35ce1d 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.tcp.src._case.TcpSrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmTcpSrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmTcpSrcSerializerTest {
 
     OxmTcpSrcSerializer serializer = new OxmTcpSrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmTcpSrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmTcpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmTcpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmTcpSrcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index 193bf057fafb516591ae2e135b640884c56e20d5..61580d8cb79069ce66541286f0b51495efbc8e95 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.tunnel.id._case.TunnelIdBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmTunnelIdSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmTunnelIdSerializerTest {
 
     OxmTunnelIdSerializer serializer = new OxmTunnelIdSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutMask() {
@@ -49,7 +50,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithMask() {
@@ -70,7 +71,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -84,7 +85,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -98,7 +99,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -106,7 +107,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -114,7 +115,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -122,7 +123,7 @@ public class OxmTunnelIdSerializerTest {
     }
 
     private static MatchEntryBuilder prepareMatchEntry(boolean hasMask, byte[] value) {
-        MatchEntryBuilder builder = prepareHeader(hasMask);
+        final MatchEntryBuilder builder = prepareHeader(hasMask);
         TunnelIdCaseBuilder casebuilder = new TunnelIdCaseBuilder();
         TunnelIdBuilder valueBuilder = new TunnelIdBuilder();
         if (hasMask) {
@@ -153,4 +154,4 @@ public class OxmTunnelIdSerializerTest {
             assertEquals("Wrong length", EncodeConstants.SIZE_OF_LONG_IN_BYTES, buffer.readUnsignedByte());
         }
     }
-}
\ No newline at end of file
+}
index 10166595af4d884df2ae770dc3f5ca4ecf171cbe..0030b9ae00e7f0bf85c09790e5d1cee62391abca 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.udp.dst._case.UdpDstBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmUdpDstSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmUdpDstSerializerTest {
 
     OxmUdpDstSerializer serializer = new OxmUdpDstSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmUdpDstSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmUdpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmUdpDstSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmUdpDstSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index db7a60e06d7246bdae6ab9861ae6b369d4747f87..8dacb263018ae8f690f541c8004c1755b5d0cc3c 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.udp.src._case.UdpSrcBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmUdpSrcSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmUdpSrcSerializerTest {
 
     OxmUdpSrcSerializer serializer = new OxmUdpSrcSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -47,7 +48,7 @@ public class OxmUdpSrcSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -61,7 +62,7 @@ public class OxmUdpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -69,7 +70,7 @@ public class OxmUdpSrcSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -77,7 +78,7 @@ public class OxmUdpSrcSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
index ecadb71cc610b1011a894ce4c0e0e09f23ef22a8..25306560d2522ab2b9478a4786c01ff00a81ec17 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.openflowjava.protocol.api.util.OxmMatchConstants;
@@ -23,15 +23,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.vlan.pcp._case.VlanPcpBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmVlanPcpSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmVlanPcpSerializerTest {
 
     OxmVlanPcpSerializer serializer = new OxmVlanPcpSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerialize() {
@@ -46,7 +47,7 @@ public class OxmVlanPcpSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeader() {
@@ -60,7 +61,7 @@ public class OxmVlanPcpSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -68,7 +69,7 @@ public class OxmVlanPcpSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -76,7 +77,7 @@ public class OxmVlanPcpSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -108,4 +109,4 @@ public class OxmVlanPcpSerializerTest {
         assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
         assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
     }
-}
\ No newline at end of file
+}
index effaccdbd37e8fad4257e88f7a953ff032ab01d7..1dd0adc1399bd1c21d1be1052f5d16e7be8140d4 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.openflowjava.protocol.impl.serialization.match;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.PooledByteBufAllocator;
-
 import org.junit.Assert;
 import org.junit.Test;
 import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
@@ -24,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.matc
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev150225.match.entry.value.grouping.match.entry.value.vlan.vid._case.VlanVidBuilder;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OxmVlanVidSerializer.
  *
+ * @author michal.polkorab
  */
 public class OxmVlanVidSerializerTest {
 
     OxmVlanVidSerializer serializer = new OxmVlanVidSerializer();
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithCfiBitSet() {
@@ -47,7 +48,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct serialization
+     * Test correct serialization.
      */
     @Test
     public void testSerializeWithoutCfiBitSet() {
@@ -65,7 +66,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithoutMask() {
@@ -79,7 +80,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct header serialization
+     * Test correct header serialization.
      */
     @Test
     public void testSerializeHeaderWithMask() {
@@ -93,7 +94,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct oxm-class return value
+     * Test correct oxm-class return value.
      */
     @Test
     public void testGetOxmClassCode() {
@@ -101,7 +102,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct oxm-field return value
+     * Test correct oxm-field return value.
      */
     @Test
     public void getOxmFieldCode() {
@@ -109,7 +110,7 @@ public class OxmVlanVidSerializerTest {
     }
 
     /**
-     * Test correct value length return value
+     * Test correct value length return value.
      */
     @Test
     public void testGetValueLength() {
@@ -117,8 +118,8 @@ public class OxmVlanVidSerializerTest {
     }
 
     private static MatchEntryBuilder prepareVlanVidMatchEntry(boolean hasMask, boolean cfiBit) {
-        MatchEntryBuilder builder = prepareVlanVidHeader(hasMask);
-        VlanVidCaseBuilder casebuilder = new VlanVidCaseBuilder();
+        final MatchEntryBuilder builder = prepareVlanVidHeader(hasMask);
+        final VlanVidCaseBuilder casebuilder = new VlanVidCaseBuilder();
         VlanVidBuilder valueBuilder = new VlanVidBuilder();
         if (hasMask) {
             valueBuilder.setMask(new byte[]{15, 15});
@@ -149,4 +150,4 @@ public class OxmVlanVidSerializerTest {
             assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
         }
     }
-}
\ No newline at end of file
+}