Esempio n. 1
0
  @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);
  }
Esempio n. 2
0
  @Test
  public void testEditTrustee() {
    Integer maxId = trusteeService.getLatestTrustee();
    Trustee trustee = trusteeService.getTrustee(maxId.intValue());
    trustee.setStatus(0);

    assertNotNull(trusteeService);
    trusteeService.editTrustee(trustee);
  }