Merge "Updated pom.xml to build documentation only on jenkins merge-job"
[openflowjava.git] / third-party / openflow-codec / src / test / java / org / openflow / codec / util / U32Test.java
1 package org.openflow.codec.util;
2
3 import org.openflow.codec.util.U32;
4
5 import junit.framework.TestCase;
6
7 public class U32Test extends TestCase {
8     /**
9      * Tests that we correctly translate unsigned values in and out of an int
10      *
11      * @throws Exception
12      */
13     public void test() throws Exception {
14         long val = 0xffffffffL;
15         TestCase.assertEquals(-1, U32.t(val));
16         TestCase.assertEquals(val, U32.f(-1));
17     }
18 }