1 package org.openflow.protocol;
3 import java.nio.ByteBuffer;
5 import junit.framework.TestCase;
7 import org.openflow.util.OFTestCase;
9 public class OFSetConfigTest extends OFTestCase {
10 public void testWriteRead() throws Exception {
11 OFGetConfigReply msg = (OFGetConfigReply) messageFactory
12 .getMessage(OFType.GET_CONFIG_REPLY);
13 msg.setFlags((short) 1);
14 ByteBuffer bb = ByteBuffer.allocate(1024);
19 TestCase.assertEquals(OFType.GET_CONFIG_REPLY, msg.getType());
20 TestCase.assertEquals((short)1, msg.getFlags());