org.mule.tck
Class MuleTestUtils
java.lang.Object
org.mule.tck.MuleTestUtils
public final class MuleTestUtils
- extends Object
Utilities for creating test and Mock Mule objects
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(MuleContext context)
|
static MuleEvent |
getTestEvent(Object data,
ImmutableEndpoint endpoint,
MuleContext context)
Supply endpoint but no service |
static MuleEvent |
getTestEvent(Object data,
MessageExchangePattern mep,
MuleContext context)
|
static MuleEvent |
getTestEvent(Object data,
MuleContext context)
Supply no service, no endpoint |
static MuleEvent |
getTestEvent(Object data,
Service service,
ImmutableEndpoint endpoint,
MuleContext context)
|
static MuleEvent |
getTestEvent(Object data,
Service service,
MessageExchangePattern mep,
MuleContext context)
|
static MuleEvent |
getTestEvent(Object data,
Service service,
MuleContext context)
Supply service but no endpoint |
static MuleEventContext |
getTestEventContext(Object data,
MessageExchangePattern mep,
MuleContext context)
|
static InboundEndpoint |
getTestInboundEndpoint(MessageExchangePattern mep,
MuleContext context)
|
static InboundEndpoint |
getTestInboundEndpoint(String name,
MessageExchangePattern mep,
MuleContext context,
Connector connector)
|
static InboundEndpoint |
getTestInboundEndpoint(String name,
MuleContext context)
|
static InboundEndpoint |
getTestInboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties,
Connector connector)
|
static MuleEvent |
getTestInboundEvent(Object data,
MessageExchangePattern mep,
MuleContext context)
|
static MuleEvent |
getTestInboundEvent(Object data,
MuleContext context)
|
static MuleEvent |
getTestInboundEvent(Object data,
MuleSession session,
MuleContext context)
|
static MuleEvent |
getTestInboundEvent(Object data,
Service service,
MessageExchangePattern mep,
MuleContext context)
|
static MuleEvent |
getTestInboundEvent(Object data,
Service service,
MuleContext context)
|
static OutboundEndpoint |
getTestOutboundEndpoint(MessageExchangePattern mep,
MuleContext context)
|
static OutboundEndpoint |
getTestOutboundEndpoint(MessageExchangePattern mep,
MuleContext context,
String uri,
Connector connector)
|
static OutboundEndpoint |
getTestOutboundEndpoint(String name,
MessageExchangePattern mep,
MuleContext context)
|
static OutboundEndpoint |
getTestOutboundEndpoint(String name,
MuleContext context)
|
static OutboundEndpoint |
getTestOutboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties)
|
static OutboundEndpoint |
getTestOutboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties,
Connector connector)
|
static ImmutableEndpoint |
getTestSchemeMetaInfoInboundEndpoint(String name,
String protocol,
MuleContext context)
|
static ImmutableEndpoint |
getTestSchemeMetaInfoOutboundEndpoint(String name,
String protocol,
MuleContext context)
|
static Service |
getTestService(MuleContext context)
|
static Service |
getTestService(String name,
Class<?> clazz,
Map props,
MuleContext context)
|
static Service |
getTestService(String name,
Class<?> clazz,
Map props,
MuleContext context,
boolean initialize)
|
static Service |
getTestService(String name,
Class<?> clazz,
MuleContext context)
|
static MuleSession |
getTestSession(MuleContext context)
|
static MuleSession |
getTestSession(Service service,
MuleContext context)
|
static InboundEndpoint |
getTestTransactedInboundEndpoint(MessageExchangePattern mep,
MuleContext context)
|
static Transformer |
getTestTransformer()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleTestUtils
public MuleTestUtils()
getTestInboundEndpoint
public static InboundEndpoint getTestInboundEndpoint(String name,
MuleContext context)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(String name,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEndpoint
public static InboundEndpoint getTestInboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties,
Connector connector)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(String name,
MuleContext context,
String uri,
List<Transformer> transformers,
Filter filter,
Map<Object,Object> properties,
Connector connector)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(MessageExchangePattern mep,
MuleContext context,
String uri,
Connector connector)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(String name,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestOutboundEndpoint
public static OutboundEndpoint getTestOutboundEndpoint(MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEndpoint
public static InboundEndpoint getTestInboundEndpoint(String name,
MessageExchangePattern mep,
MuleContext context,
Connector connector)
throws Exception
- Throws:
Exception
getTestInboundEndpoint
public static InboundEndpoint getTestInboundEndpoint(MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestTransactedInboundEndpoint
public static InboundEndpoint getTestTransactedInboundEndpoint(MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestSchemeMetaInfoInboundEndpoint
public static ImmutableEndpoint getTestSchemeMetaInfoInboundEndpoint(String name,
String protocol,
MuleContext context)
throws Exception
- Throws:
Exception
getTestSchemeMetaInfoOutboundEndpoint
public static ImmutableEndpoint getTestSchemeMetaInfoOutboundEndpoint(String name,
String protocol,
MuleContext context)
throws Exception
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
MuleContext context)
throws Exception
- Supply no service, no endpoint
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEvent
public static MuleEvent getTestInboundEvent(Object data,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEvent
public static MuleEvent getTestInboundEvent(Object data,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
Service service,
MuleContext context)
throws Exception
- Supply service but no endpoint
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
Service service,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEvent
public static MuleEvent getTestInboundEvent(Object data,
Service service,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEvent
public static MuleEvent getTestInboundEvent(Object data,
Service service,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
ImmutableEndpoint endpoint,
MuleContext context)
throws Exception
- Supply endpoint but no service
- Throws:
Exception
getTestEvent
public static MuleEvent getTestEvent(Object data,
Service service,
ImmutableEndpoint endpoint,
MuleContext context)
throws Exception
- Throws:
Exception
getTestInboundEvent
public static MuleEvent getTestInboundEvent(Object data,
MuleSession session,
MuleContext context)
throws Exception
- Throws:
Exception
getTestEventContext
public static MuleEventContext getTestEventContext(Object data,
MessageExchangePattern mep,
MuleContext context)
throws Exception
- Throws:
Exception
getTestTransformer
public static Transformer getTestTransformer()
throws Exception
- Throws:
Exception
getTestSession
public static MuleSession getTestSession(Service service,
MuleContext context)
getTestSession
public static MuleSession getTestSession(MuleContext context)
getTestConnector
public static TestConnector getTestConnector(MuleContext context)
throws Exception
- Throws:
Exception
getTestService
public static Service getTestService(MuleContext context)
throws Exception
- Throws:
Exception
getTestService
public static Service getTestService(String name,
Class<?> clazz,
MuleContext context)
throws Exception
- Throws:
Exception
getTestService
public static Service getTestService(String name,
Class<?> clazz,
Map props,
MuleContext context)
throws Exception
- Throws:
Exception
getTestService
public static Service getTestService(String name,
Class<?> clazz,
Map props,
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-2010 MuleSoft, Inc.. All Rights Reserved.