Merge "Bug 2347: DOMConcurrentDataCommitCoordinator uses wrong phase name"
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / OFStatisticsTypeTest.java
1 package org.openflow.protocol;
2
3
4 import junit.framework.TestCase;
5
6 import org.junit.Test;
7 import org.openflow.protocol.statistics.OFStatisticsType;
8
9
10 public class OFStatisticsTypeTest extends TestCase {
11     @Test
12     public void testMapping() throws Exception {
13         TestCase.assertEquals(OFStatisticsType.DESC,
14                 OFStatisticsType.valueOf((short) 0, OFType.STATS_REQUEST));
15         TestCase.assertEquals(OFStatisticsType.QUEUE,
16                 OFStatisticsType.valueOf((short) 5, OFType.STATS_REQUEST));
17         TestCase.assertEquals(OFStatisticsType.VENDOR,
18                 OFStatisticsType.valueOf((short) 0xffff, OFType.STATS_REQUEST));
19     }
20 }