-/*\r
- * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.impl.util;\r
-\r
-import java.util.List;\r
-\r
-import io.netty.buffer.ByteBuf;\r
-import io.netty.buffer.PooledByteBufAllocator;\r
-\r
-import org.junit.Assert;\r
-import org.junit.Test;\r
-import org.junit.runner.RunWith;\r
-import org.mockito.Mock;\r
-import org.mockito.runners.MockitoJUnitRunner;\r
-import org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerRegistry;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
-import org.opendaylight.yangtools.yang.binding.DataObject;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-@RunWith(MockitoJUnitRunner.class)\r
-public class ListDeserializerTest {\r
-\r
- @Mock CodeKeyMaker keyMaker;\r
- @Mock DeserializerRegistry registry;\r
-\r
- /**\r
- * Tests {@link ListDeserializer#deserializeList(short, int, ByteBuf, CodeKeyMaker, DeserializerRegistry)}\r
- */\r
- @Test\r
- public void test() {\r
- ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();\r
- List<DataObject> list = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID,\r
- 42, buffer, keyMaker, registry);\r
-\r
- Assert.assertNull("List is not null", list);\r
- }\r
-\r
- /**\r
- * Tests {@link ListDeserializer#deserializeHeaders(short, int, ByteBuf, CodeKeyMaker, DeserializerRegistry)}\r
- */\r
- @Test\r
- public void test2() {\r
- ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();\r
- List<DataObject> list = ListDeserializer.deserializeHeaders(EncodeConstants.OF13_VERSION_ID,\r
- 42, buffer, keyMaker, registry);\r
-\r
- Assert.assertNull("List is not null", list);\r
- }\r
+/*
+ * Copyright (c) 2014 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.util;
+
+import java.util.List;
+
+import io.netty.buffer.ByteBuf;
+import io.netty.buffer.PooledByteBufAllocator;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.mockito.Mock;
+import org.mockito.runners.MockitoJUnitRunner;
+import org.opendaylight.openflowjava.protocol.api.extensibility.DeserializerRegistry;
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+@RunWith(MockitoJUnitRunner.class)
+public class ListDeserializerTest {
+
+ @Mock CodeKeyMaker keyMaker;
+ @Mock DeserializerRegistry registry;
+
+ /**
+ * Tests {@link ListDeserializer#deserializeList(short, int, ByteBuf, CodeKeyMaker, DeserializerRegistry)}
+ */
+ @Test
+ public void test() {
+ ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();
+ List<DataObject> list = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID,
+ 42, buffer, keyMaker, registry);
+
+ Assert.assertNull("List is not null", list);
+ }
+
+ /**
+ * Tests {@link ListDeserializer#deserializeHeaders(short, int, ByteBuf, CodeKeyMaker, DeserializerRegistry)}
+ */
+ @Test
+ public void test2() {
+ ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer();
+ List<DataObject> list = ListDeserializer.deserializeHeaders(EncodeConstants.OF13_VERSION_ID,
+ 42, buffer, keyMaker, registry);
+
+ Assert.assertNull("List is not null", list);
+ }
}
\ No newline at end of file