Package org.jboss.arquillian.transaction.spi.context

Examples of org.jboss.arquillian.transaction.spi.context.TransactionContext


            if (transactionMode != TransactionMode.DISABLED) {
                transactionProvider = getTransactionProvider();

                // creates the transaction context
                TransactionContext transactionContext = transactionContextInstance.get();
                transactionContext.activate();

                lifecycleEvent.fire(new BeforeTransactionStarted());

                transactionProvider.beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
View Full Code Here


                } finally {
                    lifecycleEvent.fire(new AfterTransactionEnded());

                    // finally destroys the transaction context
                    TransactionContext transactionContext = transactionContextInstance.get();
                    transactionContext.destroy();
                }
            }
        }
    }
View Full Code Here

   {

      if (isTransactionEnabled(beforeTest))
      {

         TransactionContext transactionContext = transactionContextInstance.get();
         transactionContext.activate();

         lifecycleEvent.fire(new BeforeTransactionStarted());

         getTransactionProvider().beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
View Full Code Here

    public void startTransactionBeforeTest(@Observes(precedence = 10) Before beforeTest) {

        if (isTransactionEnabled(beforeTest)) {

            TransactionContext transactionContext = transactionContextInstance.get();
            transactionContext.activate();

            lifecycleEvent.fire(new BeforeTransactionStarted());

            getTransactionProvider().beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
View Full Code Here

    public void startTransactionBeforeTest(@Observes(precedence = 10) Before beforeTest) {

        if (isTransactionEnabled(beforeTest)) {

            TransactionContext transactionContext = transactionContextInstance.get();
            transactionContext.activate();

            lifecycleEvent.fire(new BeforeTransactionStarted());

            getTransactionProvider().beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.transaction.spi.context.TransactionContext

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.