Filter { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Filter other = (Filter) obj; if (id != other.id) return false; return true; } Filter(int id, String name, String product); int getId(); void setId(int id); String getName(); void setName(String name); String getProduct(); void setProduct(String product); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testEquals_1() throws Exception { Filter fixture = new Filter(1, "", ""); Object obj = new Filter(1, "", ""); boolean result = fixture.equals(obj); assertTrue(result); }
@Test public void testEquals_2() throws Exception { Filter fixture = new Filter(1, "", ""); Object obj = null; boolean result = fixture.equals(obj); }
@Test public void testEquals_4() throws Exception { Filter fixture = new Filter(1, "", ""); Object obj = new Filter(1, "", ""); boolean result = fixture.equals(obj); assertTrue(result); }
@Test public void testEquals_5() throws Exception { Filter fixture = new Filter(1, "", ""); Object obj = new Filter(1, "", ""); boolean result = fixture.equals(obj); assertTrue(result); }