1 package org.openflow.codec.util;
3 import org.openflow.codec.util.U8;
5 import junit.framework.TestCase;
7 public class U8Test extends TestCase {
9 * Tests that we correctly translate unsigned values in and out of a byte
13 public void test() throws Exception {
15 TestCase.assertEquals(-1, U8.t(val));
16 TestCase.assertEquals(val, U8.f((byte) -1));