Assert.assertFalse("Wrong equals", key1.equals(key2));\r
Assert.assertFalse("Wrong hashCode", key1.hashCode() == key2.hashCode());\r
}\r
+ \r
+ /**\r
+ * Test ActionDeserializerKey equals - additional test\r
+ */\r
+ @Test\r
+ public void testEquals(){\r
+ ActionSerializerKey<CopyTtlIn> key1 = new ActionSerializerKey<>(EncodeConstants.OF10_VERSION_ID, null, 42L);\r
+ ActionSerializerKey<?> key2 = new ActionSerializerKey<>(EncodeConstants.OF10_VERSION_ID, CopyTtlIn.class, 42L);\r
+ \r
+ Assert.assertTrue("Wrong equal to identical object.", key1.equals(key1));\r
+ \r
+ Assert.assertFalse("Wrong equal by actionType", key1.equals(key2));\r
+ \r
+ key1 = new ActionSerializerKey<>(EncodeConstants.OF10_VERSION_ID, CopyTtlIn.class, null);\r
+ Assert.assertFalse("Wrong equal by experimenterId", key1.equals(key2));\r
+ }\r
}
\ No newline at end of file