Exemplo 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));
  }
Exemplo 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));
  }