X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPGetConfigReplyTest.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPGetConfigReplyTest.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=461f2ca241ff6c7548dae8f593906055d10683a4;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPGetConfigReplyTest.java b/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPGetConfigReplyTest.java deleted file mode 100644 index 461f2ca2..00000000 --- a/third-party/openflow-codec/src/test/java/org/openflow/codec/protocol/OFPGetConfigReplyTest.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.openflow.codec.protocol; - -import junit.framework.TestCase; - -import org.openflow.codec.io.DataBuffers; -import org.openflow.codec.io.IDataBuffer; -import org.openflow.codec.protocol.OFPSetConfig; -import org.openflow.codec.protocol.OFPType; -import org.openflow.codec.util.OFTestCase; - -public class OFPGetConfigReplyTest extends OFTestCase { - public void testWriteRead() throws Exception { - OFPSetConfig msg = (OFPSetConfig) messageFactory.getMessage(OFPType.SET_CONFIG); - msg.setFlags((short) 1); - IDataBuffer bb = DataBuffers.allocate(1024); - bb.clear(); - msg.writeTo(bb); - bb.flip(); - msg.readFrom(bb); - TestCase.assertEquals(OFPType.SET_CONFIG, msg.getType()); - TestCase.assertEquals((short) 1, msg.getFlags()); - } -}