/** Test of Delete method, of class UserService. */ @Test public void testDelete_int() { System.out.println("[UserServiceTest][testDelete_int]"); User start = _svc.Create(UserTestHelper.generateUser()).getResult(); assertTrue(_svc.Delete(start.getId()).getResult()); assertEquals(ActionResultStatus.FAILURE, _svc.Read(start).getStatus()); }
/** Test of Read method, of class UserService. */ @Test public void testRead_int() { System.out.println("[UserServiceTest][testRead_int]"); User expected = _svc.Create(UserTestHelper.generateUser()).getResult(); User result = _svc.Read(expected.getId()).getResult(); UserTestHelper.assertUser(expected, result); }