Package org.jboss.arquillian.transaction.impl.configuration

Examples of org.jboss.arquillian.transaction.impl.configuration.TransactionConfiguration


    * @param beforeSuite the event fired before execution of test suite
    */
   public void loadConfiguration(@Observes BeforeSuite beforeSuite)
   {

      TransactionConfiguration configuration = TransactionConfigurationConverter.importFromProperties(
            SecurityActions.getResource("arquillian-transaction-configuration.properties"));

      configurationInstance.set(configuration);
   }
View Full Code Here


    * @param descriptor the event fired during load configuration (before the test suite events are fired)
    */
   public void loadConfiguration(@Observes ArquillianDescriptor descriptor)
   {

      TransactionConfiguration config = getConfiguration(descriptor);
      configurationInstance.set(config);
   }
View Full Code Here

   private TransactionConfiguration getConfiguration(ArquillianDescriptor arquillianDescriptor)
   {

      Map<String, String> extensionProperties = getExtensionProperties(arquillianDescriptor);

      TransactionConfiguration configuration = new TransactionConfiguration();
      configuration.setManager(extensionProperties.get(MANAGER_PROPERTY_NAME));
      final String transactionDefaultMode = extensionProperties.get(DEFAULT_TRANSACTION_MODE_PROPERTY_NAME);
      if (transactionDefaultMode != null && transactionDefaultMode.length() > 0)
      {
         configuration.setTransactionDefaultMode(TransactionMode.valueOf(transactionDefaultMode));
      }

      return configuration;
   }
View Full Code Here

     *
     * @param beforeSuiteEvent the event fired before execution of the test suite
     */
    public void loadConfiguration(@Observes BeforeSuite beforeSuiteEvent) {

        TransactionConfiguration config = getConfiguration(descriptor.get());

        configurationInstance.set(config);
    }
View Full Code Here

     */
    private TransactionConfiguration getConfiguration(ArquillianDescriptor arquillianDescriptor) {

        Map<String, String> extensionProperties = getExtensionProperties(arquillianDescriptor);

        TransactionConfiguration configuration = new TransactionConfiguration();
        configuration.setManager(extensionProperties.get(MANAGER_PROPERTY_NAME));

        return configuration;
    }
View Full Code Here

     *
     * @param beforeSuiteEvent the event fired before execution of the test suite
     */
    public void loadConfiguration(@Observes BeforeSuite beforeSuiteEvent) {

        TransactionConfiguration config = getConfiguration(descriptor.get());

        configurationInstance.set(config);
    }
View Full Code Here

     */
    private TransactionConfiguration getConfiguration(ArquillianDescriptor arquillianDescriptor) {

        Map<String, String> extensionProperties = getExtensionProperties(arquillianDescriptor);

        TransactionConfiguration configuration = new TransactionConfiguration();
        configuration.setManager(extensionProperties.get(MANAGER_PROPERTY_NAME));
        final String transactionDefaultMode = extensionProperties.get(DEFAULT_TRANSACTION_MODE_PROPERTY_NAME);
        if (transactionDefaultMode != null && transactionDefaultMode.length() > 0) {
            configuration.setTransactionDefaultMode(TransactionMode.valueOf(transactionDefaultMode));
        }

        return configuration;
    }
View Full Code Here

     *
     * @param beforeSuite the event fired before execution of test suite
     */
    public void loadConfiguration(@Observes BeforeSuite beforeSuite) {

        TransactionConfiguration configuration = TransactionConfigurationConverter.importFromProperties(
                SecurityActions.getResource("arquillian-transaction-configuration.properties"));

        configurationInstance.set(configuration);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.transaction.impl.configuration.TransactionConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.