X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPTypeTest.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPTypeTest.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=72046496f4e1c9f0bc19670d4c0443e314826263;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPTypeTest.java b/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPTypeTest.java deleted file mode 100644 index 72046496..00000000 --- a/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPTypeTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openflow.codec.protocol; - -import junit.framework.TestCase; - -import org.junit.Test; -import org.openflow.codec.protocol.OFPHello; -import org.openflow.codec.protocol.OFPMessage; -import org.openflow.codec.protocol.OFPType; - -public class OFPTypeTest extends TestCase { - - public void testOFTypeCreate() throws Exception { - OFPType foo = OFPType.HELLO; - Class c = foo.toClass(); - TestCase.assertEquals(c, OFPHello.class); - } - - @Test - public void testMapping() throws Exception { - TestCase.assertEquals(OFPType.HELLO, OFPType.valueOf((byte) 0)); - TestCase.assertEquals(OFPType.BARRIER_REPLY, OFPType.valueOf((byte) 21)); - } -}