public class XmlTestExecutingEndpointAdapter extends RequestDispatchingEndpointAdapter implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware, org.springframework.context.ApplicationContextAware
log| Constructor and Description |
|---|
XmlTestExecutingEndpointAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Creates Citrus Spring bean application context with basic beans and settings for Citrus.
|
protected org.springframework.context.support.ClassPathXmlApplicationContext |
createApplicationContext(TestContext context,
String packageName,
String testName)
Creates the Spring application context.
|
Message |
dispatchMessage(Message request,
String mappingName)
Consolidate mapping strategy in order to find dispatch incoming request to endpoint adapter according
to mapping key that was extracted before from message content.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context.
|
String |
getPackageName()
Gets default test case package.
|
EndpointAdapter |
getResponseEndpointAdapter()
Gets the response generating endpoint adapter delegate.
|
org.springframework.core.task.TaskExecutor |
getTaskExecutor()
Gets the task executor.
|
protected TestCase |
getTestCase(TestContext context,
String testName)
Gets the test case from application context.
|
protected void |
prepareExecution(Message request,
TestCase testCase)
Prepares the test builder instance before execution.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Injects Spring bean application context this adapter is managed by.
|
void |
setBeanName(String name)
Injects this adapters bean name.
|
void |
setPackageName(String packageName)
Sets default test case package.
|
void |
setResponseEndpointAdapter(EndpointAdapter endpointAdapterDelegate)
Sets the response generating endpoint adapter delegate.
|
void |
setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
Sets the task executor.
|
getMappingKeyExtractor, getMappingStrategy, handleMessageInternal, setMappingKeyExtractor, setMappingStrategygetEndpoint, getEndpointConfigurationgetFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setTestContextFactorypublic Message dispatchMessage(Message request, String mappingName)
RequestDispatchingEndpointAdapterdispatchMessage in class RequestDispatchingEndpointAdapterprotected TestCase getTestCase(TestContext context, String testName)
context - testName - protected org.springframework.context.support.ClassPathXmlApplicationContext createApplicationContext(TestContext context, String packageName, String testName)
protected void prepareExecution(Message request, TestCase testCase)
request - the triggering request message.testCase - the found test builder.public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractEndpointAdapterExceptionpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwaresetBeanName in class AbstractEndpointAdaptername - public String getPackageName()
public void setPackageName(String packageName)
packageName - public org.springframework.core.task.TaskExecutor getTaskExecutor()
public void setTaskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
taskExecutor - public EndpointAdapter getResponseEndpointAdapter()
public void setResponseEndpointAdapter(EndpointAdapter endpointAdapterDelegate)
endpointAdapterDelegate - public org.springframework.context.ApplicationContext getApplicationContext()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class AbstractEndpointAdapterapplicationContext - org.springframework.beans.BeansExceptionCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.