Package org.jboss.arquillian.transaction.api.annotation

Examples of org.jboss.arquillian.transaction.api.annotation.TransactionMode


        TransactionProvider transactionProvider;

        if (isTransactionEnabled(beforeTest)) {

            TransactionMode transactionMode = getTransactionMode(beforeTest);

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

                // creates the transaction context
View Full Code Here


        TransactionProvider transactionProvider;

        if (isTransactionEnabled(afterTest)) {

            // retrieves the transaction mode, declared for the test method
            TransactionMode transactionMode = getTransactionMode(afterTest);

            if (transactionMode != TransactionMode.DISABLED) {
                try {
                    lifecycleEvent.fire(new BeforeTransactionEnded());
View Full Code Here

      if (!isTransactionSupported(testEvent))
      {
         return false;
      }

      final TransactionMode transactionMode = getTransactionMode(testEvent);
      return transactionMode != null && !TransactionMode.DISABLED.equals(transactionMode);
   }
View Full Code Here

    * @param testEvent the test event
    * @return the transaction mode
    */
   private TransactionMode getTransactionMode(TestEvent testEvent)
   {
      TransactionMode result = extractFromTestEvent(testEvent);
      if (TransactionMode.DEFAULT.equals(result))
      {
         result = configurationInstance.get().getTransactionDefaultMode();
      }
      return result;
View Full Code Here

      return result;
   }

   private TransactionMode extractFromTestEvent(TestEvent testEvent)
   {
      TransactionMode methodLevel = null;
      TransactionMode classLevel = null;
      final TransactionEnablerLoader transactionEnablerLoader = new TransactionEnablerLoader(serviceLoaderInstance.get());
      for (TransactionEnabler enabler : transactionEnablerLoader.getTransactionEnablers())
      {
         if (methodLevel == null && enabler.isTransactionHandlingDefinedOnMethodLevel(testEvent))
         {
View Full Code Here

    private boolean isTransactionEnabled(TestEvent testEvent) {
        if (!isTransactionSupported(testEvent)) {
            return false;
        }

        final TransactionMode transactionMode = getTransactionMode(testEvent);
        return transactionMode != null && !TransactionMode.DISABLED.equals(transactionMode);
    }
View Full Code Here

     * @param testEvent the test event
     *
     * @return the transaction mode
     */
    private TransactionMode getTransactionMode(TestEvent testEvent) {
        TransactionMode methodLevel = null;
        TransactionMode classLevel = null;
        final TransactionEnablerLoader transactionEnablerLoader = new TransactionEnablerLoader(serviceLoaderInstance.get());
        for (TransactionEnabler enabler : transactionEnablerLoader.getTransactionEnablers()) {
            if (methodLevel == null && enabler.isTransactionHandlingDefinedOnMethodLevel(testEvent)) {
                methodLevel = enabler.getTransactionModeFromMethodLevel(testEvent);
            }
View Full Code Here

    private boolean isTransactionEnabled(TestEvent testEvent) {
        if (!isTransactionSupported(testEvent)) {
            return false;
        }

        final TransactionMode transactionMode = getTransactionMode(testEvent);
        return transactionMode != null && !TransactionMode.DISABLED.equals(transactionMode);
    }
View Full Code Here

     * @param testEvent the test event
     *
     * @return the transaction mode
     */
    private TransactionMode getTransactionMode(TestEvent testEvent) {
        TransactionMode result = extractFromTestEvent(testEvent);
        if (TransactionMode.DEFAULT.equals(result)) {
            result = configurationInstance.get().getTransactionDefaultMode();
        }
        return result;
    }
View Full Code Here

        }
        return result;
    }

    private TransactionMode extractFromTestEvent(TestEvent testEvent) {
        TransactionMode methodLevel = null;
        TransactionMode classLevel = null;
        final TransactionEnablerLoader transactionEnablerLoader = new TransactionEnablerLoader(serviceLoaderInstance.get());
        for (TransactionEnabler enabler : transactionEnablerLoader.getTransactionEnablers()) {
            if (methodLevel == null && enabler.isTransactionHandlingDefinedOnMethodLevel(testEvent)) {
                methodLevel = enabler.getTransactionModeFromMethodLevel(testEvent);
            }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.transaction.api.annotation.TransactionMode

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.