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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
}
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerialize() {
}
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));
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
assertEquals("Wrong length", EncodeConstants.SIZE_OF_LONG_IN_BYTES, buffer.readUnsignedByte());
}
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_INT_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
assertEquals("Wrong length", EncodeConstants.SIZE_OF_3_BYTES, buffer.readUnsignedByte());
}
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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) {
assertEquals("Wrong length", EncodeConstants.SIZE_OF_LONG_IN_BYTES, buffer.readUnsignedByte());
}
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
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;
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() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeader() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
assertEquals("Wrong hasMask", hasMask, (fieldAndMask & 1) != 0);
assertEquals("Wrong length", EncodeConstants.SIZE_OF_BYTE_IN_BYTES, buffer.readUnsignedByte());
}
-}
\ No newline at end of file
+}
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;
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() {
}
/**
- * Test correct serialization
+ * Test correct serialization.
*/
@Test
public void testSerializeWithoutCfiBitSet() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithoutMask() {
}
/**
- * Test correct header serialization
+ * Test correct header serialization.
*/
@Test
public void testSerializeHeaderWithMask() {
}
/**
- * Test correct oxm-class return value
+ * Test correct oxm-class return value.
*/
@Test
public void testGetOxmClassCode() {
}
/**
- * Test correct oxm-field return value
+ * Test correct oxm-field return value.
*/
@Test
public void getOxmFieldCode() {
}
/**
- * Test correct value length return value
+ * Test correct value length return value.
*/
@Test
public void testGetValueLength() {
}
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});
assertEquals("Wrong length", EncodeConstants.SIZE_OF_SHORT_IN_BYTES, buffer.readUnsignedByte());
}
}
-}
\ No newline at end of file
+}