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, setMappingStrategy
getEndpoint, getEndpointConfiguration
getFallbackEndpointAdapter, getName, getTestContext, getTestContextFactory, handleMessage, setFallbackEndpointAdapter, setTestContextFactory
public Message dispatchMessage(Message request, String mappingName)
RequestDispatchingEndpointAdapter
dispatchMessage
in class RequestDispatchingEndpointAdapter
protected 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.InitializingBean
afterPropertiesSet
in class AbstractEndpointAdapter
Exception
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
setBeanName
in class AbstractEndpointAdapter
name
- 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.ApplicationContextAware
setApplicationContext
in class AbstractEndpointAdapter
applicationContext
- org.springframework.beans.BeansException
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.