@Test public void testEditTrustee() { Integer maxId = trusteeService.getLatestTrustee(); Trustee trustee = trusteeService.getTrustee(maxId.intValue()); trustee.setStatus(0); assertNotNull(trusteeService); trusteeService.editTrustee(trustee); }
@Test public void testAddTrustee() { assertNotNull(trusteeService); Trustee trustee = new Trustee(); trustee.setInvestorId(12); trustee.setTrusteeRoleId(1); trustee.setStatus(1); Title title = personService.getTitle(personService.getLatestTitle()); Person person = new Person(); person.setEmailAddress("*****@*****.**"); person.setFirstname("Juan"); person.setSurname("Mata"); person.setGender("Male"); person.setIdentityNumber("1983092223233"); person.setJobTitle("Chief Architect"); person.setMobileNumber("078-000-0001"); person.setSurname("Phakzi"); person.setWorkNumber("011-111-1000"); person.setTitle(title); person.setTrustee(trustee); trustee.setPerson(person); trusteeService.addTrustee(trustee); }
// @Test public void testDeleteTrustee() { assertNotNull(trusteeService); Integer maxId = trusteeService.getLatestTrustee(); // trusteeService.deleteTrustee(maxId); }
// @Test public void testGetTrustees() { assertNotNull(trusteeService); List<Trustee> trustees = trusteeService.getTrustees(); }
// @Test public void testGetTrustee() { assertNotNull(trusteeService); Integer maxId = trusteeService.getLatestTrustee(); Trustee trustee = trusteeService.getTrustee(maxId.intValue()); assertNotNull(trustee); }