Initial opendaylight infrastructure commit!!
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFActionTypeTest.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
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
8  */
9
10 package org.openflow.protocol;
11
12
13 import org.junit.Test;
14 import org.openflow.protocol.action.OFActionType;
15
16 import junit.framework.TestCase;
17
18
19 public class OFActionTypeTest extends TestCase {
20     @Test
21     public void testMapping() throws Exception {
22         TestCase.assertEquals(OFActionType.OUTPUT,
23                 OFActionType.valueOf((short) 0));
24         TestCase.assertEquals(OFActionType.OPAQUE_ENQUEUE,
25                 OFActionType.valueOf((short) 11));
26         TestCase.assertEquals(OFActionType.VENDOR,
27                 OFActionType.valueOf((short) 0xffff));
28     }
29 }