public PersonControllerTest(String testName) {
super(testName);
}
protected void setUp() throws Exception {
Person person = new Person();
person.setIdContact(TEST_ID);
person.setFirstName("Test1");
person.setLastName("Office Staff");
person.setOfficeStaff(true);
person.setNote(getName());
personCtl.create(person);
person = new Person();
person.setIdContact(TEST_ID+1);
person.setFirstName("Test office Test");
person.setLastName("Lambda");
person.setOfficeStaff(false);
person.setOffice("Test");
person.setNote(getName());
personCtl.create(person);
// Create a person with now last name
person = new Person();
person.setIdContact(TEST_ID+2);
person.setFirstName("Test no last name");
// person.setLastName("Lambda");
person.setOfficeStaff(false);
person.setOffice("Test");
person.setNote(getName());
personCtl.create(person);
Person p1 = new Person();
p1.setIdContact(TEST_ID_ABC1);
p1.setFirstName(TEST_FIRSTNAME_ABC1);
p1.setLastName(getName());
personCtl.create(p1);
for(long id = TEST_ID_ABC1+1; id < TEST_ID_ABC1 + 8; id++) {
Person p = new Person();
p.setIdContact(id);
p.setFirstName(TEST_FIRSTNAME_ABC1 + id);
p.setLastName(getName());
personCtl.create(p);
}
Person p2 = new Person();
p2.setIdContact(TEST_ID_BBC);
p2.setFirstName(TEST_FIRSTNAME_BBC);
p2.setLastName(getName());
personCtl.create(p2);
}