Package com.consol.citrus.dsl

Examples of com.consol.citrus.dsl.CitrusTestBuilder


*/
public class TestExecutingEndpointAdapter extends XmlTestExecutingEndpointAdapter {

    @Override
    public Message dispatchMessage(final Message request, String mappingName) {
        final CitrusTestBuilder testBuilder;

        try {
            testBuilder = getApplicationContext().getBean(mappingName, CitrusTestBuilder.class);
        } catch (NoSuchBeanDefinitionException e) {
            throw new CitrusRuntimeException("Unable to find test builder with name '" +
                    mappingName + "' in Spring bean context", e);
        }

        getTaskExecutor().execute(new Runnable() {
            public void run() {
                prepareExecution(request, testBuilder);
                testBuilder.execute();
            }
        });

        return getResponseEndpointAdapter().handleMessage(request);
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.dsl.CitrusTestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.