Esempio n. 1
0
  @Test
  public void testEquals() {
    PercentType pt1 = new PercentType(new Integer(100));
    PercentType pt2 = new PercentType("100.0");
    PercentType pt3 = new PercentType(0);
    PercentType pt4 = new PercentType(0);

    assertEquals(true, pt1.equals(pt2));
    assertEquals(true, pt3.equals(pt4));
    assertEquals(false, pt3.equals(pt1));
  }