1 package org.openflow.util;
3 import junit.framework.TestCase;
5 public class U16Test extends TestCase {
7 * Tests that we correctly translate unsigned values in and out of a short
10 public void test() throws Exception {
12 TestCase.assertEquals((short)-1, U16.t(val));
13 TestCase.assertEquals((short)32767, U16.t(0x7fff));
14 TestCase.assertEquals(val, U16.f((short)-1));