@Test public void testLoadById() { long expected = 1; PersonInfo pi = personInfoService.load(expected); assertNotNull(pi); assertTrue((long) expected == (long) pi.getId()); }
@Test public void testLoadExact() { PersonInfo expected = getFakePersonInfo(); assertNull(expected.getId()); PersonInfo actual = personInfoService.load(expected); assertNotNull(actual); assertEquals(expected.getFirstName(), actual.getFirstName()); assertEquals(expected.getLastName(), actual.getLastName()); assertEquals(expected.getAge(), actual.getAge()); assertEquals(expected.getBirthDate(), actual.getBirthDate()); assertEquals(expected.getGender(), actual.getGender()); }