Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-api / src / test / java / org / opendaylight / openflowjava / protocol / api / keys / experimenter / ExperimenterInstructionDeserializerKeyTest.java
index 563cb5623f92444b723210a9dc330b8e04a0c14a..fa924f91288e036273dccb4da3dfb8ac158b37ae 100644 (file)
@@ -1,42 +1,42 @@
-/*\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.api.keys.experimenter;\r
-\r
-import org.junit.Assert;\r
-import org.junit.Test;\r
-import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;\r
-\r
-/**\r
- * @author michal.polkorab\r
- *\r
- */\r
-public class ExperimenterInstructionDeserializerKeyTest {\r
-\r
-    /**\r
-     * Test ExperimenterInstructionDeserializerKey equals and hashCode\r
-     */\r
-    @Test\r
-    public void test() {\r
-        ExperimenterInstructionDeserializerKey key1 =\r
-                new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 42L);\r
-        ExperimenterInstructionDeserializerKey key2 =\r
-                new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 42L);\r
-        Assert.assertTrue("Wrong equals", key1.equals(key2));\r
-        Assert.assertTrue("Wrong hashcode", key1.hashCode() == key2.hashCode());\r
-        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF13_VERSION_ID, 42L);\r
-        Assert.assertFalse("Wrong equals", key1.equals(key2));\r
-        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());\r
-        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, null);\r
-        Assert.assertFalse("Wrong equals", key1.equals(key2));\r
-        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());\r
-        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 55L);\r
-        Assert.assertFalse("Wrong equals", key1.equals(key2));\r
-        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());\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.api.keys.experimenter;
+
+import org.junit.Assert;
+import org.junit.Test;
+import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
+
+/**
+ * @author michal.polkorab
+ *
+ */
+public class ExperimenterInstructionDeserializerKeyTest {
+
+    /**
+     * Test ExperimenterInstructionDeserializerKey equals and hashCode
+     */
+    @Test
+    public void test() {
+        ExperimenterInstructionDeserializerKey key1 =
+                new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 42L);
+        ExperimenterInstructionDeserializerKey key2 =
+                new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 42L);
+        Assert.assertTrue("Wrong equals", key1.equals(key2));
+        Assert.assertTrue("Wrong hashcode", key1.hashCode() == key2.hashCode());
+        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF13_VERSION_ID, 42L);
+        Assert.assertFalse("Wrong equals", key1.equals(key2));
+        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());
+        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, null);
+        Assert.assertFalse("Wrong equals", key1.equals(key2));
+        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());
+        key2 = new ExperimenterInstructionDeserializerKey(EncodeConstants.OF10_VERSION_ID, 55L);
+        Assert.assertFalse("Wrong equals", key1.equals(key2));
+        Assert.assertFalse("Wrong hashcode", key1.hashCode() == key2.hashCode());
+    }
 }
\ No newline at end of file