Coverage Report - org.mule.tck.testmodels.mule.TestTransactionManagerFactory
 
Classes in this File Line Coverage Branch Coverage Complexity
TestTransactionManagerFactory
0%
0/3
0%
0/1
1
TestTransactionManagerFactory$1
0%
0/2
N/A
1
 
 1  
 /*
 2  
  * $Id: TestTransactionManagerFactory.java 7976 2007-08-21 14:26:13Z dirk.olmes $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.tck.testmodels.mule;
 12  
 
 13  
 import org.mule.umo.manager.UMOTransactionManagerFactory;
 14  
 
 15  
 import java.lang.reflect.InvocationHandler;
 16  
 import java.lang.reflect.Method;
 17  
 import java.lang.reflect.Proxy;
 18  
 
 19  
 import javax.transaction.TransactionManager;
 20  
 
 21  
 /**
 22  
  * <code>TestTransactionManagerFactory</code> TODO
 23  
  * 
 24  
  * @author <a href="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
 25  
  * @version $Revision: 7976 $
 26  
  */
 27  
 
 28  0
 public class TestTransactionManagerFactory implements UMOTransactionManagerFactory
 29  
 {
 30  
     public TransactionManager create() throws Exception
 31  
     {
 32  0
         return (TransactionManager) Proxy.newProxyInstance(getClass().getClassLoader(),
 33  0
                                                            new Class[] {TransactionManager.class},
 34  
                                                            new InvocationHandler()
 35  
         {
 36  0
             public Object invoke (Object proxy, Method method, Object[] args) throws Throwable
 37  
             {
 38  0
                 return null;
 39  
             }
 40  
 
 41  
         });
 42  
     }
 43  
 }