Copyright update
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / OF10VendorMessageFactoryTest.java
index c68d896212baa2ef9b51b83293f91f9dc4fe5ae8..7dc2e8631f094ecc9d754d343d0083cc615867dd 100644 (file)
@@ -1,28 +1,35 @@
-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */\r
-package org.opendaylight.openflowjava.protocol.impl.deserialization.factories;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-\r
-import org.junit.Assert;\r
-import org.junit.Test;\r
-import org.opendaylight.openflowjava.protocol.impl.util.BufferHelper;\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ExperimenterMessage;\r
-\r
-/**\r
- * @author michal.polkorab\r
- */\r
-public class OF10VendorMessageFactoryTest {\r
-\r
-       /**\r
-     * Testing {@link OF10VendorMessageFactory} for correct translation into POJO\r
-     */\r
-    @Test\r
-    public void test() {\r
-        ByteBuf bb = BufferHelper.buildBuffer("01 02 03 04");\r
-        ExperimenterMessage builtByFactory = BufferHelper.decodeV10(\r
-                OF10VendorMessageFactory.getInstance(), bb);\r
-\r
-        BufferHelper.checkHeaderV10(builtByFactory);\r
-        Assert.assertEquals("Wrong experimenter", 0x01020304L, builtByFactory.getExperimenter().longValue());\r
-    }\r
-}\r
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.openflowjava.protocol.impl.deserialization.factories;
+
+import io.netty.buffer.ByteBuf;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.opendaylight.openflowjava.protocol.impl.util.BufferHelper;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.ExperimenterMessage;
+
+/**
+ * @author michal.polkorab
+ */
+public class OF10VendorMessageFactoryTest {
+
+       /**
+     * Testing {@link OF10VendorMessageFactory} for correct translation into POJO
+     */
+    @Test
+    public void test() {
+        ByteBuf bb = BufferHelper.buildBuffer("01 02 03 04");
+        ExperimenterMessage builtByFactory = BufferHelper.decodeV10(
+                OF10VendorMessageFactory.getInstance(), bb);
+
+        BufferHelper.checkHeaderV10(builtByFactory);
+        Assert.assertEquals("Wrong experimenter", 0x01020304L, builtByFactory.getExperimenter().longValue());
+    }
+}