org.mule.tck
Class MuleTestUtils

java.lang.Object
  extended byorg.mule.tck.MuleTestUtils

public final class MuleTestUtils
extends Object

Utilities for creating test and Mock Mule objects


Field Summary
static String DEFAULT_MODEL_NAME
           
 
Method Summary
static UMOModel getDefaultModel()
           
static UMOManager getManager(boolean disableAdminService)
           
static com.mockobjects.dynamic.Mock getMockConnector()
           
static com.mockobjects.dynamic.Mock getMockDescriptor()
           
static com.mockobjects.dynamic.Mock getMockEndpoint()
           
static com.mockobjects.dynamic.Mock getMockEndpointURI()
           
static com.mockobjects.dynamic.Mock getMockEvent()
           
static com.mockobjects.dynamic.Mock getMockManager()
           
static com.mockobjects.dynamic.Mock getMockMessageDispatcher()
           
static com.mockobjects.dynamic.Mock getMockMessageDispatcherFactory()
           
static com.mockobjects.dynamic.Mock getMockSession()
           
static com.mockobjects.dynamic.Mock getMockTransaction()
           
static com.mockobjects.dynamic.Mock getMockTransactionFactory()
           
static TestAgent getTestAgent()
           
static UMOComponent getTestComponent(MuleDescriptor descriptor)
           
static TestConnector getTestConnector()
           
static MuleDescriptor getTestDescriptor(String name, String implementation)
           
static UMOEndpoint getTestEndpoint(String name, String type)
           
static UMOEvent getTestEvent(Object data)
           
static UMOEvent getTestEvent(Object data, MuleDescriptor descriptor)
           
static UMOEvent getTestEvent(Object data, MuleDescriptor descriptor, UMOImmutableEndpoint endpoint)
           
static UMOEvent getTestEvent(Object data, UMOImmutableEndpoint endpoint)
           
static UMOEventContext getTestEventContext(Object data)
           
static UMOSession getTestSession()
           
static UMOSession getTestSession(UMOComponent component)
           
static UMOTransformer getTestTransformer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MODEL_NAME

public static final String DEFAULT_MODEL_NAME
See Also:
Constant Field Values
Method Detail

getManager

public static UMOManager getManager(boolean disableAdminService)
                             throws Exception
Throws:
Exception

getDefaultModel

public static UMOModel getDefaultModel()
                                throws UMOException
Throws:
UMOException

getTestEndpoint

public static UMOEndpoint getTestEndpoint(String name,
                                          String type)
                                   throws Exception
Throws:
Exception

getTestEvent

public static UMOEvent getTestEvent(Object data)
                             throws Exception
Throws:
Exception

getTestEventContext

public static UMOEventContext getTestEventContext(Object data)
                                           throws Exception
Throws:
Exception

getTestTransformer

public static UMOTransformer getTestTransformer()

getTestEvent

public static UMOEvent getTestEvent(Object data,
                                    MuleDescriptor descriptor)
                             throws Exception
Throws:
Exception

getTestEvent

public static UMOEvent getTestEvent(Object data,
                                    UMOImmutableEndpoint endpoint)
                             throws Exception
Throws:
Exception

getTestEvent

public static UMOEvent getTestEvent(Object data,
                                    MuleDescriptor descriptor,
                                    UMOImmutableEndpoint endpoint)
                             throws UMOException
Throws:
UMOException

getTestSession

public static UMOSession getTestSession(UMOComponent component)

getTestSession

public static UMOSession getTestSession()

getTestConnector

public static TestConnector getTestConnector()

getTestComponent

public static UMOComponent getTestComponent(MuleDescriptor descriptor)

getTestDescriptor

public static MuleDescriptor getTestDescriptor(String name,
                                               String implementation)
                                        throws Exception
Throws:
Exception

getTestAgent

public static TestAgent getTestAgent()

getMockSession

public static com.mockobjects.dynamic.Mock getMockSession()

getMockMessageDispatcher

public static com.mockobjects.dynamic.Mock getMockMessageDispatcher()

getMockMessageDispatcherFactory

public static com.mockobjects.dynamic.Mock getMockMessageDispatcherFactory()

getMockConnector

public static com.mockobjects.dynamic.Mock getMockConnector()

getMockEvent

public static com.mockobjects.dynamic.Mock getMockEvent()

getMockManager

public static com.mockobjects.dynamic.Mock getMockManager()

getMockEndpoint

public static com.mockobjects.dynamic.Mock getMockEndpoint()

getMockEndpointURI

public static com.mockobjects.dynamic.Mock getMockEndpointURI()

getMockDescriptor

public static com.mockobjects.dynamic.Mock getMockDescriptor()

getMockTransaction

public static com.mockobjects.dynamic.Mock getMockTransaction()

getMockTransactionFactory

public static com.mockobjects.dynamic.Mock getMockTransactionFactory()


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.