X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Futil%2FHexStringTest.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Futil%2FHexStringTest.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=05a33c0fe7712cd6382770f152f572f0c97d05bc;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/test/java/org/openflow/codec/util/HexStringTest.java b/third-party/openflow-codec/src/test/java/org/openflow/codec/util/HexStringTest.java deleted file mode 100644 index 05a33c0f..00000000 --- a/third-party/openflow-codec/src/test/java/org/openflow/codec/util/HexStringTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.openflow.codec.util; - -import org.openflow.codec.util.HexString; - -import junit.framework.TestCase; - -/** - * Does hexstring conversion work? - * - * @author Rob Sherwood (rob.sherwood@stanford.edu) - * - */ - -public class HexStringTest extends TestCase { - - public void testMarshalling() throws Exception { - String dpidStr = "00:00:00:23:20:2d:16:71"; - long dpid = HexString.toLong(dpidStr); - String testStr = HexString.toHexString(dpid); - TestCase.assertEquals(dpidStr, testStr); - } - - public void testToStringBytes() { - byte[] dpid = { 0, 0, 0, 0, 0, 0, 0, -1 }; - String valid = "00:00:00:00:00:00:00:ff"; - String testString = HexString.toHexString(dpid); - TestCase.assertEquals(valid, testString); - } -}