Class TestBehaviorExecutingEndpointAdapter
java.lang.Object
org.citrusframework.endpoint.AbstractEndpointAdapter
org.citrusframework.endpoint.adapter.StaticEndpointAdapter
org.citrusframework.endpoint.adapter.RequestDispatchingEndpointAdapter
org.citrusframework.endpoint.adapter.XmlTestExecutingEndpointAdapter
org.citrusframework.endpoint.adapter.TestBehaviorExecutingEndpointAdapter
- All Implemented Interfaces:
EndpointAdapter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
Test executing endpoint adapter specialization executes a Java DSL test designer or test runner loaded from
Spring application context by bean name mapping.
- Since:
- 1.3.1
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondispatchMessage(Message request, String mappingName) protected voidprepareExecution(Message request, TestBehavior behavior) Prepares the test behavior instance before execution.protected final voidprepareExecution(Message request, TestCase testCase) Prepares the test builder instance before execution.Methods inherited from class org.citrusframework.endpoint.adapter.XmlTestExecutingEndpointAdapter
afterPropertiesSet, createApplicationContext, getApplicationContext, getPackageName, getResponseEndpointAdapter, getTaskExecutor, getTestCase, setApplicationContext, setBeanName, setPackageName, setResponseEndpointAdapter, setTaskExecutorMethods inherited from class org.citrusframework.endpoint.adapter.RequestDispatchingEndpointAdapter
getMappingKeyExtractor, getMappingStrategy, handleMessageInternal, setMappingKeyExtractor, setMappingStrategyMethods inherited from class org.citrusframework.endpoint.adapter.StaticEndpointAdapter
getEndpoint, getEndpointConfigurationMethods inherited from class org.citrusframework.endpoint.AbstractEndpointAdapter
getFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setName, setTestContextFactory
-
Constructor Details
-
TestBehaviorExecutingEndpointAdapter
public TestBehaviorExecutingEndpointAdapter()
-
-
Method Details
-
dispatchMessage
- Overrides:
dispatchMessagein classXmlTestExecutingEndpointAdapter
-
prepareExecution
Prepares the test behavior instance before execution. Subclasses may add custom properties to test behavior here.- Parameters:
request- the triggering request message.behavior- the found test behavior.
-
prepareExecution
Description copied from class:XmlTestExecutingEndpointAdapterPrepares the test builder instance before execution. Subclasses may add custom properties to teest builder here.- Overrides:
prepareExecutionin classXmlTestExecutingEndpointAdapter- Parameters:
request- the triggering request message.testCase- the found test builder.
-