Esempio n. 1
0
  @Test
  public void equalsReturnsFalseWhenNotEqual() {

    Category category1 = new Category("john", "desc", true, false);
    Category category2 = new Category("bob", "desc", true, false);

    assertFalse(category1.equals(category2));
  }
Esempio n. 2
0
  @Test
  public void equalsReturnsTrueWhenEqual() {

    Category category1 = new Category("john", "desc", true, false);
    Category category2 = new Category("john", "desc", true, false);

    assertTrue(category1.equals(category2));
  }