Removed license headers erroneously added to openflowJ
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFVendorTest.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 OFVendorTest extends OFTestCase {
10     public void testWriteRead() throws Exception {
11         OFVendor msg = (OFVendor) messageFactory.getMessage(OFType.VENDOR);
12         msg.setVendor(1);
13         ByteBuffer bb = ByteBuffer.allocate(1024);
14         bb.clear();
15         msg.writeTo(bb);
16         bb.flip();
17         msg.readFrom(bb);
18         TestCase.assertEquals(1, msg.getVendor());
19     }
20 }