コード例 #1
0
 public CreateClientEnterFamilyDetailsPage createFamilyWithoutLookups(
     Integer relation,
     Integer gender,
     Integer livingStatus,
     CreateClientEnterFamilyDetailsPage page) {
   CreateClientEnterFamilyDetailsPage.SubmitFormParameters formParameters =
       new CreateClientEnterFamilyDetailsPage.SubmitFormParameters();
   formParameters.setRelationship(relation);
   formParameters.setFirstName("fname");
   formParameters.setLastName("lname");
   formParameters.setDateOfBirthDD("11");
   formParameters.setDateOfBirthMM("1");
   formParameters.setDateOfBirthYY("2009");
   formParameters.setGender(gender);
   formParameters.setLivingStatus(livingStatus);
   return page.createMember(formParameters);
 }
コード例 #2
0
 public CreateClientEnterFamilyDetailsPage createFamily(
     String fname,
     String lname,
     String dd,
     String mm,
     String yy,
     CreateClientEnterFamilyDetailsPage page) {
   CreateClientEnterFamilyDetailsPage.SubmitFormParameters formParameters =
       new CreateClientEnterFamilyDetailsPage.SubmitFormParameters();
   formParameters.setRelationship(CreateClientEnterFamilyDetailsPage.SubmitFormParameters.FATHER);
   formParameters.setFirstName(fname);
   formParameters.setLastName(lname);
   formParameters.setDateOfBirthDD(dd);
   formParameters.setDateOfBirthMM(mm);
   formParameters.setDateOfBirthYY(yy);
   formParameters.setGender(CreateClientEnterFamilyDetailsPage.SubmitFormParameters.MALE);
   formParameters.setLivingStatus(
       CreateClientEnterFamilyDetailsPage.SubmitFormParameters.TOGETHER);
   return page.createMember(formParameters);
 }