X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Futil%2FU16Test.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Futil%2FU16Test.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=97014f91c2fb649b9254fe6c84769c74babdd1c3;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/test/java/org/openflow/codec/util/U16Test.java b/third-party/openflow-codec/src/test/java/org/openflow/codec/util/U16Test.java deleted file mode 100644 index 97014f91..00000000 --- a/third-party/openflow-codec/src/test/java/org/openflow/codec/util/U16Test.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.openflow.codec.util; - -import org.openflow.codec.util.U16; - -import junit.framework.TestCase; - -public class U16Test extends TestCase { - /** - * Tests that we correctly translate unsigned values in and out of a short - * - * @throws Exception - */ - public void test() throws Exception { - int val = 0xffff; - TestCase.assertEquals((short) -1, U16.t(val)); - TestCase.assertEquals((short) 32767, U16.t(0x7fff)); - TestCase.assertEquals(val, U16.f((short) -1)); - } -}