Exemple #1
0
  @Test
  public void testEditTrustee() {
    Integer maxId = trusteeService.getLatestTrustee();
    Trustee trustee = trusteeService.getTrustee(maxId.intValue());
    trustee.setStatus(0);

    assertNotNull(trusteeService);
    trusteeService.editTrustee(trustee);
  }
Exemple #2
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);
  }
Exemple #3
0
 // @Test
 public void testDeleteTrustee() {
   assertNotNull(trusteeService);
   Integer maxId = trusteeService.getLatestTrustee();
   // trusteeService.deleteTrustee(maxId);
 }
Exemple #4
0
 // @Test
 public void testGetTrustees() {
   assertNotNull(trusteeService);
   List<Trustee> trustees = trusteeService.getTrustees();
 }
Exemple #5
0
 // @Test
 public void testGetTrustee() {
   assertNotNull(trusteeService);
   Integer maxId = trusteeService.getLatestTrustee();
   Trustee trustee = trusteeService.getTrustee(maxId.intValue());
   assertNotNull(trustee);
 }