3 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.openflow.protocol;
12 import java.nio.ByteBuffer;
14 import junit.framework.TestCase;
16 import org.openflow.util.OFTestCase;
18 public class OFVendorTest extends OFTestCase {
19 public void testWriteRead() throws Exception {
20 OFVendor msg = (OFVendor) messageFactory.getMessage(OFType.VENDOR);
22 ByteBuffer bb = ByteBuffer.allocate(1024);
27 TestCase.assertEquals(1, msg.getVendor());