AutomationJobRegion implements Serializable, RegionRequest { @Override public boolean equals(Object obj) { if (!(obj instanceof AutomationJobRegion)) { return false; } AutomationJobRegion o = (AutomationJobRegion) obj; return new EqualsBuilder().append(o.region, region).isEquals(); } AutomationJobRegion(VMRegion region, String users); protected  AutomationJobRegion(); VMRegion getRegion(); String getUsers(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }
@Test public void testEquals_1() throws Exception { AutomationJobRegion fixture = new AutomationJobRegion(VMRegion.ASIA_1, ""); Object obj = new AutomationJobRegion(VMRegion.ASIA_1, ""); boolean result = fixture.equals(obj); assertTrue(result); }
@Test public void testEquals_2() throws Exception { AutomationJobRegion fixture = new AutomationJobRegion(VMRegion.ASIA_1, ""); Object obj = new AutomationJobRegion(VMRegion.ASIA_1, ""); boolean result = fixture.equals(obj); assertTrue(result); }
@Test public void testEquals_3() throws Exception { AutomationJobRegion fixture = new AutomationJobRegion(VMRegion.ASIA_1, ""); Object obj = new AutomationJobRegion(VMRegion.ASIA_3, ""); boolean result = fixture.equals(obj); assertFalse(result); }