Remove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / protocol / serialization / multipart / tablefeatures / ApplySetfieldTablePropertySerializerTest.java
index e19f7dbf8efcf612f76994b033fef7eb701ab487..057251cd6b42345f3f557cb152a66e634257469c 100644 (file)
@@ -5,14 +5,12 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-
 package org.opendaylight.openflowplugin.impl.protocol.serialization.multipart.tablefeatures;
 
 import static org.junit.Assert.assertEquals;
 
 import com.google.common.collect.ImmutableList;
 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.common.types.rev130731.TableFeaturesPropType;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.ArpOp;
@@ -23,7 +21,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.types.rev131026.table.feature.prop.type.table.feature.prop.type.ApplySetfieldBuilder;
 
 public class ApplySetfieldTablePropertySerializerTest extends AbstractTablePropertySerializerTest {
-
     @Test
     public void testSerialize() {
         final ApplySetfield property = new ApplySetfieldBuilder()
@@ -43,7 +40,7 @@ public class ApplySetfieldTablePropertySerializerTest extends AbstractTablePrope
         assertProperty(property, out -> {
             assertEquals(out.readUnsignedShort(), OxmMatchConstants.OPENFLOW_BASIC_CLASS);
             assertEquals(out.readUnsignedByte(), OxmMatchConstants.ARP_OP << 1);
-            out.skipBytes(EncodeConstants.SIZE_OF_BYTE_IN_BYTES); // Skip match entry length
+            out.skipBytes(Byte.BYTES); // Skip match entry length
         });
     }
 
@@ -56,5 +53,4 @@ public class ApplySetfieldTablePropertySerializerTest extends AbstractTablePrope
     protected int getType() {
         return TableFeaturesPropType.OFPTFPTAPPLYSETFIELD.getIntValue();
     }
-
 }