*/
protected void prepareExecution(Message> request, CitrusTestBuilder testBuilder) {
}
<<<<<<< HEAD
=======
/**
* Sets the task executor. Usually some async task executor for test execution in
* separate thread instance.
*
* @param taskExecutor
*/
public void setTaskExecutor(TaskExecutor taskExecutor) {
this.taskExecutor = taskExecutor;
}
/**
* Creates Citrus Spring bean application context with basic beans and settings for Citrus. Custom
* messageHandlerContext should hold various test builder beans for later dispatching and test execution.
* @throws Exception
*/
public void afterPropertiesSet() throws Exception {
if (responseMessageHandler == null) {
MessageChannelConnectingMessageHandler channelConnectingMessageHandler = new MessageChannelConnectingMessageHandler();
channelConnectingMessageHandler.setChannelName(name + AbstractServer.DEFAULT_CHANNEL_ID_SUFFIX);
channelConnectingMessageHandler.setBeanFactory(applicationContext);
responseMessageHandler = channelConnectingMessageHandler;
}
if (getMessageHandlerMapping() == null) {
SpringBeanMessageHandlerMapping messageHandlerMapping = new SpringBeanMessageHandlerMapping();
messageHandlerMapping.setApplicationContext(applicationContext);
setMessageHandlerMapping(messageHandlerMapping);
}
}
/**
* Injects this handlers bean name.
* @param name
*/
public void setBeanName(String name) {
this.name = name;
}
/**
* Sets the response message handler delegate.
* @param responseMessageHandler
*/
public void setResponseMessageHandler(MessageHandler responseMessageHandler) {
this.responseMessageHandler = responseMessageHandler;
}
/**
* Injects Spring bean application context this handler is managed by.
* @param applicationContext
* @throws BeansException
*/
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}
>>>>>>> 93136fd26e9e8b809d918e81c39ac76d4a81dc01
} |