Package org.apache.camel

Examples of org.apache.camel.EndpointConfiguration.toUriString()


    @Test
    public void testConfigurationEquals() throws Exception {
        EndpointConfiguration cfg1 = ConfigurationHelper.createConfiguration("mapped://foo?one=true&two=2", context);
        EndpointConfiguration cfg2 = ConfigurationHelper.createConfiguration("mapped://foo?two=2&one=true", context);
        String uri1 = cfg1.toUriString(EndpointConfiguration.UriFormat.Complete);
        String uri2 = cfg2.toUriString(EndpointConfiguration.UriFormat.Complete);
        assertEquals("Query parameter order should not matter", uri1, uri2);
    }

    @Test
    @Ignore("Fails due CAMEL-5183")
View Full Code Here


    @Test
    @Ignore("Fails due CAMEL-5183")
    public void testConfigurationPortParameter() throws Exception {
        EndpointConfiguration cfg1 = ConfigurationHelper.createConfiguration("mapped://foo:8080?one=true&two=2&port=123", context);
        String uri1 = cfg1.toUriString(EndpointConfiguration.UriFormat.Complete);
        assertEquals("mapped://foo:8080?one=true&port=123&two=2", uri1);
    }

    private static class ConfiguredComponent implements Component {
        private CamelContext context;
View Full Code Here

    @Test
    public void testConfigurationEquals() throws Exception {
        EndpointConfiguration cfg1 = ConfigurationHelper.createConfiguration("mapped://foo?one=true&two=2", context);
        EndpointConfiguration cfg2 = ConfigurationHelper.createConfiguration("mapped://foo?two=2&one=true", context);
        String uri1 = cfg1.toUriString(EndpointConfiguration.UriFormat.Complete);
        String uri2 = cfg2.toUriString(EndpointConfiguration.UriFormat.Complete);
        assertEquals("Query paramater order should not matter", uri1, uri2);
    }

    private static class ConfiguredComponent implements Component {
        private CamelContext context;
View Full Code Here

    }

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }
View Full Code Here

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }

    @Test
View Full Code Here

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }

    @Test
    public void testDummyConfiguration() throws Exception {
View Full Code Here

    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals("TBD", config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }

    @Test
    public void testDummyConfiguration() throws Exception {
       
View Full Code Here

    }

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }
View Full Code Here

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }

    @Test
View Full Code Here

    @Test
    public void testConfigurationFormat() throws Exception {
        EndpointConfiguration config = ConfigurationHelper.createConfiguration("uri-dump:foo", context);
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Canonical));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Provider));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Consumer));
        assertEquals(null, config.toUriString(EndpointConfiguration.UriFormat.Complete));
    }

    @Test
    public void testDummyConfiguration() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.