コード例 #1
0
  protected TicketBookingRequest fillMeARequest() {
    TicketBookingRequest request = new TicketBookingRequest();

    request.setRulesAndRegulationsAcceptance(Boolean.valueOf(true));

    request.setSubscriberLastName("SubscriberLastName");

    request.setSubscriberNumber("SubscriberNumber");

    request.setSubscriberFirstName("SubscriberFirstName");

    request.setIsSubscriber(Boolean.valueOf(true));

    request.setPaymentReference("PaymentReference");

    // Means Of Contact
    MeansOfContact meansOfContact =
        meansOfContactService.getMeansOfContactByType(MeansOfContactEnum.EMAIL);
    request.setMeansOfContact(meansOfContact);
    TicketBookingRequestFeeder.feed(request);
    return request;
  }
コード例 #2
0
  protected MilitaryCensusRequest fillMeARequest() {
    MilitaryCensusRequest request = new MilitaryCensusRequest();

    request.setFatherBirthDepartment(InseeDepartementCodeType.NONE);

    request.setChildProfession("ChildProfession");

    request.setChildStatus(FamilyStatusType.MARRIED);

    request.setAliveChildren(BigInteger.valueOf(1));

    request.setAffectionOrDisease(Boolean.valueOf(true));

    request.setStatePupil(Boolean.valueOf(true));

    request.setChildTitle(TitleType.MISTER);

    request.setChildMail("ChildMail");

    request.setChildDiploma(ChildDiplomaType.B_A_C);

    request.setMotherBirthCountry(CountryType.UNKNOWN);

    request.setFatherBirthCity("FatherBirthCity");

    request.setFatherBirthDate(new Date());

    if ("FatherFirstName".length() > 38)
      request.setFatherFirstName("FatherFirstName".substring(0, 38));
    else request.setFatherFirstName("FatherFirstName");

    request.setMotherBirthCity("MotherBirthCity");

    request.setFatherNationality(FullNationalityType.NONE);

    request.setMotherBirthDate(new Date());

    if ("MotherFirstName".length() > 38)
      request.setMotherFirstName("MotherFirstName".substring(0, 38));
    else request.setMotherFirstName("MotherFirstName");

    request.setChildBirthCountry(CountryType.UNKNOWN);

    request.setMotherNationality(FullNationalityType.NONE);

    request.setHighlyInfirm(Boolean.valueOf(true));

    request.setChildSpeciality("ChildSpeciality");

    request.setChildOtherCountry(FullNationalityType.NONE);

    request.setChildrenInCharge(BigInteger.valueOf(1));

    request.setJapdExemption(Boolean.valueOf(true));

    request.setChildSituation(ChildSituationType.COLLEGE);

    if ("MaidenName".length() > 38) request.setMaidenName("MaidenName".substring(0, 38));
    else request.setMaidenName("MaidenName");

    if ("ChildPhone".length() > 10) request.setChildPhone("ChildPhone".substring(0, 10));
    else request.setChildPhone("ChildPhone");

    if ("MotherLastName".length() > 38)
      request.setMotherLastName("MotherLastName".substring(0, 38));
    else request.setMotherLastName("MotherLastName");

    if ("FatherLastName".length() > 38)
      request.setFatherLastName("FatherLastName".substring(0, 38));
    else request.setFatherLastName("FatherLastName");

    request.setPrefectPupilDepartment(InseeDepartementCodeType.NONE);

    request.setMotherBirthDepartment(InseeDepartementCodeType.NONE);

    request.setChildResidenceCountry(CountryType.UNKNOWN);

    request.setOtherSituation("OtherSituation");

    request.setPrefectPupil(Boolean.valueOf(true));

    request.setChildCountry(FullNationalityType.NONE);

    if ("ChildConvention".length() > 255)
      request.setChildConvention("ChildConvention".substring(0, 255));
    else request.setChildConvention("ChildConvention");

    request.setFatherBirthCountry(CountryType.UNKNOWN);

    // Means Of Contact
    MeansOfContact meansOfContact =
        meansOfContactService.getMeansOfContactByType(MeansOfContactEnum.EMAIL);
    request.setMeansOfContact(meansOfContact);
    MilitaryCensusRequestFeeder.feed(request);
    return request;
  }