Bug 2273: Removed unbuilt third-party code.
[controller.git] / third-party / openflowj / src / test / java / org / openflow / protocol / BasicFactoryTest.java
diff --git a/third-party/openflowj/src/test/java/org/openflow/protocol/BasicFactoryTest.java b/third-party/openflowj/src/test/java/org/openflow/protocol/BasicFactoryTest.java
deleted file mode 100644 (file)
index 04cf0f7..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.openflow.protocol;
-
-import java.nio.ByteBuffer;
-import java.util.List;
-
-import org.openflow.protocol.factory.BasicFactory;
-import org.openflow.util.U16;
-
-import junit.framework.TestCase;
-
-
-
-public class BasicFactoryTest extends TestCase {
-    public void testCreateAndParse() {
-        BasicFactory factory = new BasicFactory();
-        OFMessage m = factory.getMessage(OFType.HELLO);
-        m.setVersion((byte) 1);
-        m.setType(OFType.ECHO_REQUEST);
-        m.setLength(U16.t(8));
-        m.setXid(0xdeadbeef);
-        ByteBuffer bb = ByteBuffer.allocate(1024);
-        m.writeTo(bb);
-        bb.flip();
-        bb.limit(bb.limit()-1);
-        TestCase.assertEquals(0, factory.parseMessages(bb).size());
-        bb.limit(bb.limit()+1);
-        List<OFMessage> messages = factory.parseMessages(bb);
-        TestCase.assertEquals(1, messages.size());
-        TestCase.assertTrue(messages.get(0).getType() == OFType.ECHO_REQUEST);
-    }
-}