Fix checkstyle warnings in netconf-cli
[controller.git] / third-party / openflowj / src / test / java / org / openflow / util / U16Test.java
1 package org.openflow.util;
2
3 import junit.framework.TestCase;
4
5 public class U16Test extends TestCase {
6   /**
7    * Tests that we correctly translate unsigned values in and out of a short
8    * @throws Exception
9    */
10   public void test() throws Exception {
11       int val = 0xffff;
12       TestCase.assertEquals((short)-1, U16.t(val));
13       TestCase.assertEquals((short)32767, U16.t(0x7fff));
14       TestCase.assertEquals(val, U16.f((short)-1));
15   }
16 }