X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflowj%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fprotocol%2FOFPortStatusTest.java;fp=third-party%2Fopenflowj%2Fsrc%2Ftest%2Fjava%2Forg%2Fopenflow%2Fprotocol%2FOFPortStatusTest.java;h=0000000000000000000000000000000000000000;hb=e1c04c5af263a9604a765f1ab98be51dfc51d8cb;hp=8509059e5bbb275807111f526f34bfd813e4aee1;hpb=a935ffda7f26be29de879a47b426d0db7a28d588;p=controller.git diff --git a/third-party/openflowj/src/test/java/org/openflow/protocol/OFPortStatusTest.java b/third-party/openflowj/src/test/java/org/openflow/protocol/OFPortStatusTest.java deleted file mode 100644 index 8509059e5b..0000000000 --- a/third-party/openflowj/src/test/java/org/openflow/protocol/OFPortStatusTest.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.openflow.protocol; - -import java.nio.ByteBuffer; - -import junit.framework.TestCase; - -import org.openflow.protocol.OFPortStatus.OFPortReason; -import org.openflow.util.OFTestCase; - -public class OFPortStatusTest extends OFTestCase { - public void testWriteRead() throws Exception { - OFPortStatus msg = (OFPortStatus) messageFactory - .getMessage(OFType.PORT_STATUS); - msg.setDesc(new OFPhysicalPort()); - msg.getDesc().setHardwareAddress(new byte[6]); - msg.getDesc().setName("eth0"); - msg.setReason((byte) OFPortReason.OFPPR_ADD.ordinal()); - ByteBuffer bb = ByteBuffer.allocate(1024); - bb.clear(); - msg.writeTo(bb); - bb.flip(); - msg.readFrom(bb); - TestCase.assertEquals(OFType.PORT_STATUS, msg.getType()); - TestCase.assertEquals((byte) OFPortReason.OFPPR_ADD.ordinal(), msg - .getReason()); - TestCase.assertNotNull(msg.getDesc()); - } -}