Copyright update
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / OF10HelloMessageFactoryTest.java
index d06b37017aba3001cdff50aadc0cbff919b12054..5c08bf4d70cf7ef4230001a9d102e61ddaca402d 100644 (file)
@@ -1,47 +1,54 @@
-/* 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.HelloMessage;\r
-\r
-/**\r
- * @author michal.polkorab\r
- */\r
-public class OF10HelloMessageFactoryTest {\r
-\r
-       /**\r
-     * Testing {@link OF10HelloMessageFactory} for correct translation into POJO\r
-     */\r
-    @Test\r
-    public void testWithoutElements() {\r
-        ByteBuf bb = BufferHelper.buildBuffer();\r
-        HelloMessage builtByFactory = BufferHelper.decodeV10(\r
-                OF10HelloMessageFactory.getInstance(), bb);\r
-\r
-        BufferHelper.checkHeaderV10(builtByFactory);\r
-        Assert.assertNull("Wrong elements", builtByFactory.getElements());\r
-    }\r
-       \r
-       /**\r
-     * Testing {@link OF10HelloMessageFactory} for correct translation into POJO\r
-     */\r
-    @Test\r
-    public void testWithElements() {\r
-        ByteBuf bb = BufferHelper.buildBuffer("00 01 " // type\r
-                                            + "00 0c " // length\r
-                                            + "00 00 00 11 " // bitmap 1\r
-                                            + "00 00 00 00 " // bitmap 2\r
-                                            + "00 00 00 00"  // padding\r
-                );\r
-        HelloMessage builtByFactory = BufferHelper.decodeV10(\r
-                OF10HelloMessageFactory.getInstance(), bb);\r
-\r
-        BufferHelper.checkHeaderV10(builtByFactory);\r
-        Assert.assertNull("Wrong elements", builtByFactory.getElements());\r
-    }\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.HelloMessage;
+
+/**
+ * @author michal.polkorab
+ */
+public class OF10HelloMessageFactoryTest {
+
+       /**
+     * Testing {@link OF10HelloMessageFactory} for correct translation into POJO
+     */
+    @Test
+    public void testWithoutElements() {
+        ByteBuf bb = BufferHelper.buildBuffer();
+        HelloMessage builtByFactory = BufferHelper.decodeV10(
+                OF10HelloMessageFactory.getInstance(), bb);
+
+        BufferHelper.checkHeaderV10(builtByFactory);
+        Assert.assertNull("Wrong elements", builtByFactory.getElements());
+    }
+       
+       /**
+     * Testing {@link OF10HelloMessageFactory} for correct translation into POJO
+     */
+    @Test
+    public void testWithElements() {
+        ByteBuf bb = BufferHelper.buildBuffer("00 01 " // type
+                                            + "00 0c " // length
+                                            + "00 00 00 11 " // bitmap 1
+                                            + "00 00 00 00 " // bitmap 2
+                                            + "00 00 00 00"  // padding
+                );
+        HelloMessage builtByFactory = BufferHelper.decodeV10(
+                OF10HelloMessageFactory.getInstance(), bb);
+
+        BufferHelper.checkHeaderV10(builtByFactory);
+        Assert.assertNull("Wrong elements", builtByFactory.getElements());
+    }
+
+}