Removed license headers erroneously added to openflowJ
[controller.git] / third-party / openflowj / src / test / java / org / openflow / util / U64Test.java
1 package org.openflow.util;
2
3 import java.math.BigInteger;
4
5 import junit.framework.TestCase;
6
7 public class U64Test extends TestCase {
8   /**
9    * Tests that we correctly translate unsigned values in and out of a long
10    * @throws Exception
11    */
12   public void test() throws Exception {
13       BigInteger val = new BigInteger("ffffffffffffffff", 16);
14       TestCase.assertEquals(-1, U64.t(val));
15       TestCase.assertEquals(val, U64.f(-1));
16   }
17 }