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

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


     * @return the transaction mode
     */
    private TransactionMode getTransactionMode(TestEvent testEvent) {

        // retrieves the transaction annotation
        Transactional transactional = getTransactionalAnnotation(testEvent);

        // returns the transaction mode
        return transactional.value();
    }
View Full Code Here


     *
     * @return the transaction manager name or null if one hasn't been set
     */
    private String getTransactionManager(TestEvent testEvent) {

        Transactional transactional;
        String transactionManager = "";

        // tries to retrieve the name of the manager from annotated test method
        transactional = testEvent.getTestMethod().getAnnotation(Transactional.class);
        if (transactional != null) {
            transactionManager = transactional.manager();
        }

        // if the transaction manager name hasn't been set then tries to retrieve it from class level annotation
        if (transactionManager.length() == 0) {
            transactional = testEvent.getTestClass().getAnnotation(Transactional.class);
            if (transactional != null) {
                transactionManager = transactional.manager();
            }
        }

        // if the transaction manager name still hasn't been set then tries to get the manager from the configuration
        if (transactionManager.length() == 0) {
View Full Code Here

    * @return the transaction manager name or null if one hasn't been set
    */
   private String getTransactionManager(TestEvent testEvent)
   {

      Transactional transactional;
      String transactionManager = "";

      // tries to retrieve the name of the manager from annotated test method
      transactional = testEvent.getTestMethod().getAnnotation(Transactional.class);
      if (transactional != null)
      {
         transactionManager = transactional.manager();
      }

      // if the transaction manager name hasn't been set then tries to
      // retrieve it from class level annotation
      if (transactionManager.length() == 0)
      {
         transactional = testEvent.getTestClass().getAnnotation(Transactional.class);
         if (transactional != null)
         {
            transactionManager = transactional.manager();
         }
      }

      if (transactionManager.length() == 0)
      {
View Full Code Here

     *
     * @return the transaction manager name or null if one hasn't been set
     */
    private String getTransactionManager(TestEvent testEvent) {

        Transactional transactional;
        String transactionManager = "";

        // tries to retrieve the name of the manager from annotated test method
        transactional = testEvent.getTestMethod().getAnnotation(Transactional.class);
        if (transactional != null) {
            transactionManager = transactional.manager();
        }

        // if the transaction manager name hasn't been set then tries to
        // retrieve it from class level annotation
        if (transactionManager.length() == 0) {
            transactional = testEvent.getTestClass().getAnnotation(Transactional.class);
            if (transactional != null) {
                transactionManager = transactional.manager();
            }
        }

        if (transactionManager.length() == 0) {
            transactionManager = obtainTranscationManagerFromConfiguration(transactionManager);
View Full Code Here

     *
     * @return the transaction manager name or null if one hasn't been set
     */
    private String getTransactionManager(TestEvent testEvent) {

        Transactional transactional;
        String transactionManager = "";

        // tries to retrieve the name of the manager from annotated test method
        transactional = testEvent.getTestMethod().getAnnotation(Transactional.class);
        if (transactional != null) {
            transactionManager = transactional.manager();
        }

        // if the transaction manager name hasn't been set then tries to
        // retrieve it from class level annotation
        if (transactionManager.length() == 0) {
            transactional = testEvent.getTestClass().getAnnotation(Transactional.class);
            if (transactional != null) {
                transactionManager = transactional.manager();
            }
        }

        if (transactionManager.length() == 0) {
            transactionManager = obtainTranscationManagerFromConfiguration(transactionManager);
View Full Code Here

TOP

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

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.