JobRegion extends BaseEntity implements RegionRequest, Comparable<JobRegion> { @Override public String getUsers() { if(StringUtils.isEmpty(users)) { return "0"; } return users; } 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 testJobRegion_1() throws Exception { JobRegion result = new JobRegion(); assertNotNull(result); assertEquals("0", result.getUsers()); assertEquals(0, result.getId()); assertEquals(null, result.getModified()); assertEquals(null, result.getCreated()); }
@Test public void testJobRegion_2() throws Exception { VMRegion region = VMRegion.ASIA_1; String users = ""; JobRegion result = new JobRegion(region, users); assertNotNull(result); assertEquals("0", result.getUsers()); assertEquals(0, result.getId()); assertEquals(null, result.getModified()); assertEquals(null, result.getCreated()); }
@Test public void testGetUsers_1() throws Exception { JobRegion fixture = new JobRegion(VMRegion.ASIA_1, ""); String result = fixture.getUsers(); assertEquals("0", result); }