KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > tck > testmodels > mule > TestTransactionFactory


1 /*
2  * $Id: TestTransactionFactory.java 3798 2006-11-04 04:07:14Z aperepel $
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 MuleSource MPL
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 com.mockobjects.dynamic.Mock;
14
15 import org.mule.umo.TransactionException;
16 import org.mule.umo.UMOTransaction;
17 import org.mule.umo.UMOTransactionFactory;
18
19 /**
20  * <code>TestTransactionFactory</code> TODO
21  *
22  * @author <a HREF="mailto:ross.mason@symphonysoft.com">Ross Mason</a>
23  * @version $Revision: 3798 $
24  */

25
26 public class TestTransactionFactory implements UMOTransactionFactory
27 {
28     public UMOTransaction beginTransaction() throws TransactionException
29     {
30         return (UMOTransaction)new Mock(UMOTransaction.class).proxy();
31     }
32
33     public boolean isTransacted()
34     {
35         return true;
36     }
37 }
38
Popular Tags