1 package org.openflow.protocol;
3 import java.nio.ByteBuffer;
5 import junit.framework.TestCase;
7 import org.openflow.util.OFTestCase;
9 public class OFBarrierRequestTest extends OFTestCase {
10 public void testWriteRead() throws Exception {
11 OFBarrierRequest msg = (OFBarrierRequest) messageFactory
12 .getMessage(OFType.BARRIER_REQUEST);
13 ByteBuffer bb = ByteBuffer.allocate(1024);
18 TestCase.assertEquals(OFType.BARRIER_REQUEST, msg.getType());