JobRegion extends BaseEntity implements RegionRequest, Comparable<JobRegion> { @Override public boolean equals(Object obj) { if (!(obj instanceof JobRegion)) { return false; } JobRegion o = (JobRegion) obj; if (getId() == 0) { return new EqualsBuilder().append(o.getRegion(), getRegion()).append(o.getUsers(), getUsers()).isEquals(); } return new EqualsBuilder().append(getId(), o.getId()).isEquals(); } JobRegion();  JobRegion(VMRegion region, String users); @Override VMRegion getRegion(); void setRegion(VMRegion region); @Override String getUsers(); void setUsers(String users); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @Override int compareTo(JobRegion o);  }
@Test public void testEquals_1() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); Object obj = new Object(); boolean result = fixture.equals(obj); assertEquals(false, result); }
@Test public void testEquals_2() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); Object obj = new JobRegion(); boolean result = fixture.equals(obj); assertEquals(false, result); }
@Test public void testEquals_3() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); Object obj = new JobRegion(); boolean result = fixture.equals(obj); assertEquals(false, result); }
@Test public void testEquals_4() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); Object obj = new JobRegion(); boolean result = fixture.equals(obj); assertEquals(false, result); }
@Test public void testEquals_5() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); Object obj = new JobRegion(); boolean result = fixture.equals(obj); assertEquals(false, result); }