-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.ErrorMessage;\r
-\r
-/**\r
- * @author michal.polkorab\r
- * @author timotej.kubas\r
- */\r
-public class ErrorMessageFactoryTest {\r
-\r
- /**\r
- * Test of {@link ErrorMessageFactory} for correct translation into POJO\r
- */\r
- @Test\r
- public void test() {\r
- ByteBuf bb = BufferHelper.buildBuffer("00 04 00 03 01 02 03 04");\r
- ErrorMessage builtByFactory = BufferHelper.decodeV13(ErrorMessageFactory.getInstance(), bb);\r
- BufferHelper.checkHeaderV13(builtByFactory);\r
- \r
- Assert.assertEquals("Wrong reason", 0x04, builtByFactory.getType().getIntValue());\r
- Assert.assertEquals("Wrong code", 3, builtByFactory.getCode().intValue());\r
- Assert.assertArrayEquals("Wrong body", new byte[]{0x01, 0x02, 0x03, 0x04}, builtByFactory.getData());\r
- }\r
-}\r
+/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
+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.ErrorMessage;
+
+/**
+ * @author michal.polkorab
+ * @author timotej.kubas
+ */
+public class ErrorMessageFactoryTest {
+
+ /**
+ * Test of {@link ErrorMessageFactory} for correct translation into POJO
+ */
+ @Test
+ public void test() {
+ ByteBuf bb = BufferHelper.buildBuffer("00 04 00 03 01 02 03 04");
+ ErrorMessage builtByFactory = BufferHelper.decodeV13(ErrorMessageFactory.getInstance(), bb);
+ BufferHelper.checkHeaderV13(builtByFactory);
+
+ Assert.assertEquals("Wrong reason", 0x04, builtByFactory.getType().getIntValue());
+ Assert.assertEquals("Wrong code", 3, builtByFactory.getCode().intValue());
+ Assert.assertArrayEquals("Wrong body", new byte[]{0x01, 0x02, 0x03, 0x04}, builtByFactory.getData());
+ }
+}