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
+}