1 package org.openflow.codec.protocol;
3 import junit.framework.TestCase;
5 import org.openflow.codec.io.DataBuffers;
6 import org.openflow.codec.io.IDataBuffer;
7 import org.openflow.codec.protocol.OFPBarrierReply;
8 import org.openflow.codec.protocol.OFPType;
9 import org.openflow.codec.util.OFTestCase;
11 public class OFPBarrierReplyTest extends OFTestCase {
12 public void testWriteRead() throws Exception {
13 OFPBarrierReply msg = (OFPBarrierReply) messageFactory.getMessage(OFPType.BARRIER_REPLY);
14 IDataBuffer bb = DataBuffers.allocate(1024);
19 TestCase.assertEquals(OFPType.BARRIER_REPLY, msg.getType());