1 package org.openflow.protocol;
4 import junit.framework.TestCase;
7 import org.openflow.protocol.statistics.OFStatisticsType;
10 public class OFStatisticsTypeTest extends TestCase {
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));