Merge "Bug 2347: DOMConcurrentDataCommitCoordinator uses wrong phase name"
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFGetConfigRequestTest.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 OFGetConfigRequestTest extends OFTestCase {
10     public void testWriteRead() throws Exception {
11         OFGetConfigRequest msg = (OFGetConfigRequest) messageFactory
12                 .getMessage(OFType.GET_CONFIG_REQUEST);
13         ByteBuffer bb = ByteBuffer.allocate(1024);
14         bb.clear();
15         msg.writeTo(bb);
16         bb.flip();
17         msg.readFrom(bb);
18         TestCase.assertEquals(OFType.GET_CONFIG_REQUEST, msg.getType());
19     }
20 }