Merge "Bug 2347: DOMConcurrentDataCommitCoordinator uses wrong phase name"
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFActionTypeTest.java
1 package org.openflow.protocol;
2
3
4 import org.junit.Test;
5 import org.openflow.protocol.action.OFActionType;
6
7 import junit.framework.TestCase;
8
9
10 public class OFActionTypeTest extends TestCase {
11     @Test
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));
19     }
20 }