org.mule.tck
Class MuleTestUtils

java.lang.Object
  extended by org.mule.tck.MuleTestUtils

public final class MuleTestUtils
extends Object

Utilities for creating test and Mock Mule objects


Constructor Summary
MuleTestUtils()
           
 
Method Summary
static com.mockobjects.dynamic.Mock getMockConnector()
           
static com.mockobjects.dynamic.Mock getMockEndpointURI()
           
static com.mockobjects.dynamic.Mock getMockEvent()
           
static com.mockobjects.dynamic.Mock getMockInboundEndpoint()
           
static com.mockobjects.dynamic.Mock getMockMessageDispatcher()
           
static com.mockobjects.dynamic.Mock getMockMessageDispatcherFactory()
           
static com.mockobjects.dynamic.Mock getMockMuleContext()
           
static com.mockobjects.dynamic.Mock getMockOutboundEndpoint()
           
static com.mockobjects.dynamic.Mock getMockSession()
           
static com.mockobjects.dynamic.Mock getMockTransaction()
           
static com.mockobjects.dynamic.Mock getMockTransactionFactory()
           
static TestAgent getTestAgent()
           
static TestConnector getTestConnector(org.mule.api.MuleContext context)
           
static org.mule.api.MuleEvent getTestEvent(Object data, org.mule.api.endpoint.ImmutableEndpoint endpoint, org.mule.api.MuleContext context)
          Supply endpoint but no service
static org.mule.api.MuleEvent getTestEvent(Object data, org.mule.api.MuleContext context)
          Supply no service, no endpoint
static org.mule.api.MuleEvent getTestEvent(Object data, org.mule.api.service.Service service, org.mule.api.endpoint.ImmutableEndpoint endpoint, org.mule.api.MuleContext context)
           
static org.mule.api.MuleEvent getTestEvent(Object data, org.mule.api.service.Service service, org.mule.api.MuleContext context)
          Supply service but no endpoint
static org.mule.api.MuleEventContext getTestEventContext(Object data, org.mule.api.MuleContext context)
           
static org.mule.api.endpoint.InboundEndpoint getTestInboundEndpoint(String name, org.mule.api.MuleContext context)
           
static org.mule.api.endpoint.InboundEndpoint getTestInboundEndpoint(String name, org.mule.api.MuleContext context, String uri, List transformers, org.mule.api.routing.filter.Filter filter, Map properties)
           
static org.mule.api.MuleEvent getTestInboundEvent(Object data, org.mule.api.MuleContext context)
           
static org.mule.api.MuleEvent getTestInboundEvent(Object data, org.mule.api.service.Service service, org.mule.api.MuleContext context)
           
static org.mule.api.endpoint.OutboundEndpoint getTestOutboundEndpoint(String name, org.mule.api.MuleContext context)
           
static org.mule.api.endpoint.OutboundEndpoint getTestOutboundEndpoint(String name, org.mule.api.MuleContext context, String uri, List transformers, org.mule.api.routing.filter.Filter filter, Map properties)
           
static org.mule.api.endpoint.ImmutableEndpoint getTestSchemeMetaInfoInboundEndpoint(String name, String protocol, org.mule.api.MuleContext context)
           
static org.mule.api.endpoint.ImmutableEndpoint getTestSchemeMetaInfoOutboundEndpoint(String name, String protocol, org.mule.api.MuleContext context)
           
static org.mule.api.service.Service getTestService(org.mule.api.MuleContext context)
           
static org.mule.api.service.Service getTestService(String name, Class clazz, Map props, org.mule.api.MuleContext context)
           
static org.mule.api.service.Service getTestService(String name, Class clazz, Map props, org.mule.api.MuleContext context, boolean initialize)
           
static org.mule.api.service.Service getTestService(String name, Class clazz, org.mule.api.MuleContext context)
           
static org.mule.api.MuleSession getTestSession(org.mule.api.MuleContext context)
           
static org.mule.api.MuleSession getTestSession(org.mule.api.service.Service service, org.mule.api.MuleContext context)
           
static org.mule.api.transformer.Transformer 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

getTestInboundEndpoint

public static org.mule.api.endpoint.InboundEndpoint getTestInboundEndpoint(String name,
                                                                           org.mule.api.MuleContext context)
                                                                    throws Exception
Throws:
Exception

getTestOutboundEndpoint

public static org.mule.api.endpoint.OutboundEndpoint getTestOutboundEndpoint(String name,
                                                                             org.mule.api.MuleContext context)
                                                                      throws Exception
Throws:
Exception

getTestInboundEndpoint

public static org.mule.api.endpoint.InboundEndpoint getTestInboundEndpoint(String name,
                                                                           org.mule.api.MuleContext context,
                                                                           String uri,
                                                                           List transformers,
                                                                           org.mule.api.routing.filter.Filter filter,
                                                                           Map properties)
                                                                    throws Exception
Throws:
Exception

getTestOutboundEndpoint

public static org.mule.api.endpoint.OutboundEndpoint getTestOutboundEndpoint(String name,
                                                                             org.mule.api.MuleContext context,
                                                                             String uri,
                                                                             List transformers,
                                                                             org.mule.api.routing.filter.Filter filter,
                                                                             Map properties)
                                                                      throws Exception
Throws:
Exception

getTestSchemeMetaInfoInboundEndpoint

public static org.mule.api.endpoint.ImmutableEndpoint getTestSchemeMetaInfoInboundEndpoint(String name,
                                                                                           String protocol,
                                                                                           org.mule.api.MuleContext context)
                                                                                    throws Exception
Throws:
Exception

getTestSchemeMetaInfoOutboundEndpoint

public static org.mule.api.endpoint.ImmutableEndpoint getTestSchemeMetaInfoOutboundEndpoint(String name,
                                                                                            String protocol,
                                                                                            org.mule.api.MuleContext context)
                                                                                     throws Exception
Throws:
Exception

getTestEvent

public static org.mule.api.MuleEvent getTestEvent(Object data,
                                                  org.mule.api.MuleContext context)
                                           throws Exception
Supply no service, no endpoint

Throws:
Exception

getTestInboundEvent

public static org.mule.api.MuleEvent getTestInboundEvent(Object data,
                                                         org.mule.api.MuleContext context)
                                                  throws Exception
Throws:
Exception

getTestEvent

public static org.mule.api.MuleEvent getTestEvent(Object data,
                                                  org.mule.api.service.Service service,
                                                  org.mule.api.MuleContext context)
                                           throws Exception
Supply service but no endpoint

Throws:
Exception

getTestInboundEvent

public static org.mule.api.MuleEvent getTestInboundEvent(Object data,
                                                         org.mule.api.service.Service service,
                                                         org.mule.api.MuleContext context)
                                                  throws Exception
Throws:
Exception

getTestEvent

public static org.mule.api.MuleEvent getTestEvent(Object data,
                                                  org.mule.api.endpoint.ImmutableEndpoint endpoint,
                                                  org.mule.api.MuleContext context)
                                           throws Exception
Supply endpoint but no service

Throws:
Exception

getTestEvent

public static org.mule.api.MuleEvent getTestEvent(Object data,
                                                  org.mule.api.service.Service service,
                                                  org.mule.api.endpoint.ImmutableEndpoint endpoint,
                                                  org.mule.api.MuleContext context)
                                           throws Exception
Throws:
Exception

getTestEventContext

public static org.mule.api.MuleEventContext getTestEventContext(Object data,
                                                                org.mule.api.MuleContext context)
                                                         throws Exception
Throws:
Exception

getTestTransformer

public static org.mule.api.transformer.Transformer getTestTransformer()
                                                               throws Exception
Throws:
Exception

getTestSession

public static org.mule.api.MuleSession getTestSession(org.mule.api.service.Service service,
                                                      org.mule.api.MuleContext context)

getTestSession

public static org.mule.api.MuleSession getTestSession(org.mule.api.MuleContext context)

getTestConnector

public static TestConnector getTestConnector(org.mule.api.MuleContext context)
                                      throws Exception
Throws:
Exception

getTestService

public static org.mule.api.service.Service getTestService(org.mule.api.MuleContext context)
                                                   throws Exception
Throws:
Exception

getTestService

public static org.mule.api.service.Service getTestService(String name,
                                                          Class clazz,
                                                          org.mule.api.MuleContext context)
                                                   throws Exception
Throws:
Exception

getTestService

public static org.mule.api.service.Service getTestService(String name,
                                                          Class clazz,
                                                          Map props,
                                                          org.mule.api.MuleContext context)
                                                   throws Exception
Throws:
Exception

getTestService

public static org.mule.api.service.Service getTestService(String name,
                                                          Class clazz,
                                                          Map props,
                                                          org.mule.api.MuleContext context,
                                                          boolean initialize)
                                                   throws Exception
Throws:
Exception

getTestAgent

public static TestAgent getTestAgent()
                              throws Exception
Throws:
Exception

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()

getMockMuleContext

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

getMockInboundEndpoint

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

getMockOutboundEndpoint

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

getMockEndpointURI

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

getMockTransaction

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

getMockTransactionFactory

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


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