1 package org.openflow.protocol;
5 import org.openflow.protocol.action.OFActionType;
7 import junit.framework.TestCase;
10 public class OFActionTypeTest extends TestCase {
12 public void testMapping() throws Exception {
13 TestCase.assertEquals(OFActionType.OUTPUT,
14 OFActionType.valueOf((short) 0));
15 TestCase.assertEquals(OFActionType.OPAQUE_ENQUEUE,
16 OFActionType.valueOf((short) 11));
17 TestCase.assertEquals(OFActionType.VENDOR,
18 OFActionType.valueOf((short) 0xffff));