Example #1
0
  @Test
  public void testEquals() {
    assertFalse(empty.equals(g1));
    assertFalse(g1.equals(empty));

    assertTrue(empty.equals(empty));
    assertTrue(g1.equals(g1));
  }
Example #2
0
 @Test
 public void testEqualsWrongObject() {
   assertFalse(empty.equals(new String(empty.toString())));
 }