Removed license headers erroneously added to openflowJ
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFGetConfigReplyTest.java
1 package org.openflow.protocol;
2
3 import java.nio.ByteBuffer;
4
5 import junit.framework.TestCase;
6
7 import org.openflow.util.OFTestCase;
8
9 public class OFGetConfigReplyTest extends OFTestCase {
10     public void testWriteRead() throws Exception {
11         OFSetConfig msg = (OFSetConfig) messageFactory
12                 .getMessage(OFType.SET_CONFIG);
13         msg.setFlags((short) 1);
14         ByteBuffer bb = ByteBuffer.allocate(1024);
15         bb.clear();
16         msg.writeTo(bb);
17         bb.flip();
18         msg.readFrom(bb);
19         TestCase.assertEquals(OFType.SET_CONFIG, msg.getType());
20         TestCase.assertEquals((short)1, msg.getFlags());
21     }
22 }