Package com.consol.citrus.admin.model

Examples of com.consol.citrus.admin.model.EndpointData


    private SshClientConverter endpointConverter = new SshClientConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new Client());
        Assert.assertEquals(endpointData.getType(), "ssh");
    }
View Full Code Here


    private JmsEndpointConverter endpointConverter = new JmsEndpointConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new Endpoint());
        Assert.assertEquals(endpointData.getType(), "jms");
    }
View Full Code Here

    private ChannelEndpointConverter endpointConverter = new ChannelEndpointConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new ChannelEndpoint());
        Assert.assertEquals(endpointData.getType(), "channel");
    }
View Full Code Here

    private MailClientConverter endpointConverter = new MailClientConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new Client());
        Assert.assertEquals(endpointData.getType(), "mail");
    }
View Full Code Here

    private HttpClientConverter endpointConverter = new HttpClientConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new Client());
        Assert.assertEquals(endpointData.getType(), "http-client");
    }
View Full Code Here

    private WebServiceClientConverter endpointConverter = new WebServiceClientConverter();

    @Test
    public void testConvert() throws Exception {
        EndpointData endpointData = endpointConverter.convert(new Client());
        Assert.assertEquals(endpointData.getType(), "ws-client");
    }
View Full Code Here

@Component
public class FtpEndpointConverter extends AbstractEndpointConverter<Client> {

    @Override
    public EndpointData convert(Client client) {
        EndpointData endpointData = new EndpointData(getEndpointType(), client.getId(), getModelClass());

        endpointData.add(property("host", client));
        endpointData.add(property("port", client));
        endpointData.add(property("user", client));
        endpointData.add(property("password", client));
        endpointData.add(property("messageCorrelator", client)
                .optionKey(MessageCorrelator.class.getName()));

        endpointData.add(property("pollingInterval", client));

        addEndpointProperties(endpointData, client);

        return endpointData;
    }
View Full Code Here

@Component
public class SshClientConverter extends AbstractEndpointConverter<Client> {

    @Override
    public EndpointData convert(Client client) {
        EndpointData endpointData = new EndpointData(getEndpointType(), client.getId(), getModelClass());

        endpointData.add(property("host", client, "localhost"));
        endpointData.add(property("port", client, "2222"));
        endpointData.add(property("user", client));
        endpointData.add(property("password", client));
        endpointData.add(property("strictHostChecking", client, "false")
                .options("true", "false"));
        endpointData.add(property("knownHostsPath", client));
        endpointData.add(property("commandTimeout", client));
        endpointData.add(property("connectionTimeout", client));
        endpointData.add(property("messageCorrelator", client)
                .optionKey(MessageCorrelator.class.getName()));
        endpointData.add(property("pollingInterval", client, "500"));

        addEndpointProperties(endpointData, client);

        return endpointData;
    }
View Full Code Here

@Component
public class HttpServerConverter extends AbstractEndpointConverter<Server> {

    @Override
    public EndpointData convert(Server server) {
        EndpointData endpointData = new EndpointData(getEndpointType(), server.getId(), getModelClass());

        endpointData.add(property("port", server));
        endpointData.add(property("autoStart", server, "true")
                .options("true", "false"));
        endpointData.add(property("resourceBase", server));
        endpointData.add(property("contextPath", server));
        endpointData.add(property("rootParentContext", server, "true")
                .options("true", "false"));
        endpointData.add(property("messageConverter", server)
                .optionKey(MessageConverter.class.getName()));
        endpointData.add(property("endpointAdapter", server)
                .optionKey(EndpointAdapter.class.getName()));
        endpointData.add(property("securityHandler", server));
        endpointData.add(property("servletHandler", server));
        endpointData.add(property("connector", server));
        endpointData.add(property("connectors", server));
        endpointData.add(property("servletName", server));
        endpointData.add(property("servletMappingPath", server));
        endpointData.add(property("interceptors", server));

        endpointData.add(property("timeout", server, "5000"));

        return endpointData;
    }
View Full Code Here

@Component
public class WebServiceServerConverter extends AbstractEndpointConverter<Server> {

    @Override
    public EndpointData convert(Server server) {
        EndpointData endpointData = new EndpointData(getEndpointType(), server.getId(), getModelClass());

        endpointData.add(property("port", server));
        endpointData.add(property("autoStart", server, "true")
                .options("true", "false"));
        endpointData.add(property("resourceBase", server));
        endpointData.add(property("contextPath", server));
        endpointData.add(property("rootParentContext", server, "true")
                .options("true", "false"));
        endpointData.add(property("handleMimeHeaders", server, "true")
                .options("true", "false"));
        endpointData.add(property("messageConverter", server)
                .optionKey(MessageConverter.class.getName()));
        endpointData.add(property("endpointAdapter", server)
                .optionKey(EndpointAdapter.class.getName()));
        endpointData.add(property("securityHandler", server));
        endpointData.add(property("servletHandler", server));
        endpointData.add(property("connector", server));
        endpointData.add(property("connectors", server));
        endpointData.add(property("servletName", server));
        endpointData.add(property("servletMappingPath", server));
        endpointData.add(property("interceptors", server));
        endpointData.add(property("soapHeaderNamespace", server));
        endpointData.add(property("soapHeaderPrefix", server));

        endpointData.add(property("timeout", server, "5000"));

        return endpointData;
    }
View Full Code Here

TOP

Related Classes of com.consol.citrus.admin.model.EndpointData

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.