Skip to content

Commit

Permalink
Simplify several assertions in EmptyPropertiesTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dota17 committed Apr 28, 2020
1 parent f72ba86 commit fadafcf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit fadafcf

Please sign in to comment.