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.OFPSetConfig;
8 import org.openflow.codec.protocol.OFPType;
9 import org.openflow.codec.util.OFTestCase;
11 public class OFPGetConfigReplyTest extends OFTestCase {
12 public void testWriteRead() throws Exception {
13 OFPSetConfig msg = (OFPSetConfig) messageFactory.getMessage(OFPType.SET_CONFIG);
14 msg.setFlags((short) 1);
15 IDataBuffer bb = DataBuffers.allocate(1024);
20 TestCase.assertEquals(OFPType.SET_CONFIG, msg.getType());
21 TestCase.assertEquals((short) 1, msg.getFlags());