1 package org.openflow.codec.util;
3 import org.openflow.codec.util.U32;
5 import junit.framework.TestCase;
7 public class U32Test extends TestCase {
9 * Tests that we correctly translate unsigned values in and out of an int
13 public void test() throws Exception {
14 long val = 0xffffffffL;
15 TestCase.assertEquals(-1, U32.t(val));
16 TestCase.assertEquals(val, U32.f(-1));