private void createStandardBag(boolean allowLazyAdding) {
    try {
      m_bag = null;

      final Object initArgs[] = {
        new NamedValue("AutomaticAddition", Boolean.valueOf(allowLazyAdding))
      };

      final String serviceName = "com.sun.star.beans.PropertyBag";
      m_bag =
          UnoRuntime.queryInterface(
              XPropertyContainer.class, m_orb.createInstanceWithArguments(serviceName, initArgs));
      if (m_bag == null) {
        fail("could not create a " + serviceName + " instance");
      }
      m_set = UnoRuntime.queryInterface(XPropertySet.class, m_bag);
      m_access = UnoRuntime.queryInterface(XPropertyAccess.class, m_bag);

      final Object properties[][] = {
        {"BoolValue", Boolean.TRUE},
        {"StringValue", ""},
        {"IntegerValue", Integer.valueOf(3)},
        {"InterfaceValue", m_bag}
      };
      for (int i = 0; i < properties.length; ++i) {
        m_bag.addProperty((String) properties[i][0], PropertyAttribute.MAYBEVOID, properties[i][1]);
      }
    } catch (com.sun.star.uno.Exception e) {
    }
  }
  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;
  }
  @Test
  public void actualizarCategoria() {

    String catLeida = JOptionPane.showInputDialog("digite la caegoria a actualizar");
    String catLeidaValor = JOptionPane.showInputDialog("digite el valor");

    categoria.setIdCategoria(Integer.parseInt(catLeida));
    categoria.setActiva(Boolean.valueOf(catLeidaValor));

    em = EntityManagerHelper.getEntityManager();
    EntityManagerHelper.beginTransaction();
    em.merge(categoria);
    EntityManagerHelper.commit();
    EntityManagerHelper.closeEntityManager();
    EntityManagerHelper.closeEntityManagerFactory();
  }
  static void assertHeaders(Message message, Operation op) throws JMSException {
    Object map = op.get(MESSAGE_HEADERS);

    assertNotNull(map);
    assertTrue(map instanceof OperationMap);

    OperationMap opMap = (OperationMap) map;

    assertEquals(CORRELATION_ID, message.getJMSCorrelationID(), opMap.get(CORRELATION_ID));
    assertEquals(
        DELIVERY_MODE,
        getDeliveryMode(message.getJMSDeliveryMode()).getLabel(),
        opMap.get(DELIVERY_MODE));
    assertEquals(EXPIRATION, Long.valueOf(message.getJMSExpiration()), opMap.get(EXPIRATION));
    assertEquals(MESSAGE_ID, message.getJMSMessageID(), opMap.get(MESSAGE_ID));
    assertEquals(PRIORITY, Integer.valueOf(message.getJMSPriority()), opMap.get(PRIORITY));
    assertEquals(REDELIVERED, Boolean.valueOf(message.getJMSRedelivered()), opMap.get(REDELIVERED));
  }
 private boolean isColumnTaggedAsReadonly(
     org.talend.core.model.metadata.builder.connection.MetadataTable table, String columnName) {
   if (table == null || columnName == null) {
     return false;
   }
   EList<org.talend.core.model.metadata.builder.connection.MetadataColumn> columns =
       table.getColumns();
   for (org.talend.core.model.metadata.builder.connection.MetadataColumn newColumn : columns) {
     if (columnName.equals(newColumn.getLabel())) {
       EList<TaggedValue> taggedValues = newColumn.getTaggedValue();
       for (TaggedValue taggedValue : taggedValues) {
         if (DiSchemaConstants.TALEND6_IS_READ_ONLY.equals(taggedValue.getTag())) {
           return Boolean.valueOf(taggedValue.getValue());
         }
       }
     }
   }
   return false;
 }
 public GitChangeSetEuroTest(String useAuthorName) {
   this.useAuthorName = Boolean.valueOf(useAuthorName);
 }
  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;
  }