* 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.deserialization.multipart;
import static org.junit.Assert.assertEquals;
@Override
protected void init() {
+ // No-op
}
@Test
buffer.writeShort(IDLE_TIMEOUT);
buffer.writeShort(HARD_TIMEOUT);
buffer.writeShort(ByteBufUtils.fillBitMask(0,
- FLAGS.isSENDFLOWREM(),
- FLAGS.isCHECKOVERLAP(),
- FLAGS.isRESETCOUNTS(),
- FLAGS.isNOPKTCOUNTS(),
- FLAGS.isNOBYTCOUNTS()));
+ FLAGS.getSENDFLOWREM(),
+ FLAGS.getCHECKOVERLAP(),
+ FLAGS.getRESETCOUNTS(),
+ FLAGS.getNOPKTCOUNTS(),
+ FLAGS.getNOBYTCOUNTS()));
buffer.writeZero(PADDING_IN_FLOW_STATS_HEADER_02);
buffer.writeLong(COOKIE);
buffer.writeLong(PACKET_COUNT);
// MplsLabel match
buffer.writeShort(OxmMatchConstants.OPENFLOW_BASIC_CLASS);
buffer.writeByte(OxmMatchConstants.MPLS_LABEL << 1);
- buffer.writeByte(EncodeConstants.SIZE_OF_INT_IN_BYTES);
+ buffer.writeByte(Integer.BYTES);
buffer.writeInt(MPLS_LABEL);
// Match footer
// Deserialize and check everything
final MultipartReply message = (MultipartReply) getFactory()
- .deserialize(buffer, EncodeConstants.OF13_VERSION_ID);
+ .deserialize(buffer, EncodeConstants.OF_VERSION_1_3);
final MultipartReplyFlowStats reply = (MultipartReplyFlowStats) message.getMultipartReplyBody();