diff --git a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java index ff690c78be..7eadf3a5db 100644 --- a/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java +++ b/src/test/java/org/apache/commons/collections4/properties/EmptyPropertiesTest.java @@ -88,10 +88,10 @@ public void testEntrySet() { @Test public void testEquals() { - Assert.assertTrue(PropertiesFactory.EMPTY_PROPERTIES.equals(PropertiesFactory.EMPTY_PROPERTIES)); - Assert.assertTrue(PropertiesFactory.EMPTY_PROPERTIES.equals(new Properties())); - Assert.assertTrue(new Properties().equals(PropertiesFactory.EMPTY_PROPERTIES)); - Assert.assertFalse(PropertiesFactory.EMPTY_PROPERTIES.equals(null)); + Assert.assertEquals(PropertiesFactory.EMPTY_PROPERTIES, PropertiesFactory.EMPTY_PROPERTIES); + Assert.assertEquals(PropertiesFactory.EMPTY_PROPERTIES, new Properties()); + Assert.assertEquals(new Properties(), PropertiesFactory.EMPTY_PROPERTIES); + Assert.assertNull(PropertiesFactory.EMPTY_PROPERTIES); final Properties p = new Properties(); p.put("Key", "Value"); Assert.assertFalse(PropertiesFactory.EMPTY_PROPERTIES.equals(p));