org.mule.tck
Class MuleTestUtils

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

public class MuleTestUtils
extends Object

Utilities for creating test and Mock Mule objects

Version:
$Revision: 3798 $
Author:
Ross Mason

Constructor Summary
MuleTestUtils()
           
 
Method Summary
static UMOManager getManager(boolean disableAdminService)
           
static Mock getMockConnector()
           
static Mock getMockDescriptor()
           
static Mock getMockEndpoint()
           
static Mock getMockEndpointURI()
           
static Mock getMockEvent()
           
static Mock getMockManager()
           
static Mock getMockMessageDispatcher()
           
static Mock getMockSession()
           
static Mock getMockTransaction()
           
static 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 UMOManager getTestManager()
           
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
 

Constructor Detail

MuleTestUtils

public MuleTestUtils()
Method Detail

getManager

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

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

getTestManager

public static UMOManager getTestManager()
                                 throws UMOException
Throws:
UMOException

getTestAgent

public static TestAgent getTestAgent()

getMockSession

public static Mock getMockSession()

getMockMessageDispatcher

public static Mock getMockMessageDispatcher()

getMockConnector

public static Mock getMockConnector()

getMockEvent

public static Mock getMockEvent()

getMockManager

public static Mock getMockManager()

getMockEndpoint

public static Mock getMockEndpoint()

getMockEndpointURI

public static Mock getMockEndpointURI()

getMockDescriptor

public static Mock getMockDescriptor()

getMockTransaction

public static Mock getMockTransaction()

getMockTransactionFactory

public static Mock getMockTransactionFactory()


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.