Package org.mule.impl.endpoint

Examples of org.mule.impl.endpoint.MuleEndpointURI


        assertEquals("mqs://QMgr/my.queue", uri.toString());
    }

    public void testWithoutFullUrlAndProvider() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://QMgr/my.queue?endpointName=mqseriesProvider");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.queue", uri.getAddress());
        assertEquals("mqseriesProvider", uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("mqs://QMgr/my.queue?endpointName=mqseriesProvider", uri.toString());
    }
View Full Code Here


        assertEquals("mqs://QMgr/my.queue?endpointName=mqseriesProvider", uri.toString());
    }

    public void testValidQueueWithUserInfo() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://user:password@QMgr/my.queue");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.queue", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertNull(uri.getResourceInfo());
        assertEquals("user:password", uri.getUserInfo());
        assertEquals("user", uri.getUsername());
        assertEquals("password", uri.getPassword());
        assertEquals("mqs://user:password@QMgr/my.queue", uri.toString());
    }
View Full Code Here

        assertEquals("mqs://user:password@QMgr/my.queue", uri.toString());
    }

    public void testMQSeriesTopic() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://topic:my.topic");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.topic", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("topic:my.topic",uri.getParams().getProperty("queueManager"));
        assertEquals("topic", uri.getResourceInfo());
        assertEquals("mqs://topic:my.topic", uri.toString());

    }
View Full Code Here

    }

    public void testMQSeriesTopicWithUserInfo() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://user:pass@topic:my.topic");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.topic", uri.getAddress());
        assertEquals("user", uri.getUsername());
        assertEquals("pass", uri.getPassword());
        assertNull(uri.getEndpointName());
        assertEquals("user:pass@topic:my.topic",uri.getParams().getProperty("queueManager"));
        assertEquals("topic", uri.getResourceInfo());
        assertEquals("mqs://user:pass@topic:my.topic", uri.toString());
    }
View Full Code Here

        assertEquals("mqs://user:pass@topic:my.topic", uri.toString());
    }

    public void testTopicWithQM() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://QMgr/topic:my.topic");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.topic", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("topic", uri.getResourceInfo());
        assertEquals("mqs://QMgr/topic:my.topic", uri.toString());
    }
View Full Code Here

        assertEquals("mqs://QMgr/topic:my.topic", uri.toString());
    }

    public void testTopicWithQMAndUserInfo() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://user:password@QMgr/topic:my.topic");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.topic", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("mqs", uri.getSchemeMetaInfo());
        assertEquals("user:password", uri.getUserInfo());
        assertEquals("user", uri.getUsername());
        assertEquals("password", uri.getPassword());
        assertEquals("mqs://user:password@QMgr/topic:my.topic", uri.toString());
    }
View Full Code Here

        assertEquals("mqs://user:password@QMgr/topic:my.topic", uri.toString());
    }

    public void testValidTopicWithEndpointName() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs://QMgr/topic:my.topic?endpointName=mqTopicProvider");
        assertEquals("mqs", uri.getScheme());
        assertEquals("my.topic", uri.getAddress());
        assertEquals("mqTopicProvider", uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("topic", uri.getResourceInfo());
        assertEquals("mqs://QMgr/topic:my.topic?endpointName=mqTopicProvider", uri.toString());
    }
View Full Code Here

        assertEquals("mqs://QMgr/topic:my.topic?endpointName=mqTopicProvider", uri.toString());
    }

    public void testValidMQSeriesQueueURI() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs:queue://QMgr/my.queue?persistence=false");
        assertEquals("mqs:queue", uri.getFullScheme());
        assertEquals("queue://QMgr/my.queue?persistence=false", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("queue", uri.getResourceInfo());
        //Todo Mule 2.0 toString should give full URI assertEquals("mqs:queue://QMgr/my.queue?persistence=false", uri.toString());
    }
View Full Code Here

        //Todo Mule 2.0 toString should give full URI assertEquals("mqs:queue://QMgr/my.queue?persistence=false", uri.toString());
    }

    public void testValidMQSeriesTopicURI() throws Exception
    {
        UMOEndpointURI uri = new MuleEndpointURI("mqs:topic://QMgr/my.topic?persistence=false");
        assertEquals("mqs:topic", uri.getFullScheme());
        assertEquals("topic://QMgr/my.topic?persistence=false", uri.getAddress());
        assertNull(uri.getEndpointName());
        assertEquals("QMgr", uri.getParams().getProperty("queueManager"));
        assertEquals("topic", uri.getResourceInfo());
        //Todo Mule 2.0 toString should give full URI assertEquals("mqs:topic://QMgr/my.topic?persistence=false", uri.toString());
    }
View Full Code Here

    }

    protected MuleDescriptor createDescriptor(String name, String in, String out) throws EndpointException, MuleException {
        UMOEndpointURI inbound = null;
        UMOEndpointURI outbound = null;
        if (in != null) inbound = new MuleEndpointURI(in);
        if (out != null) outbound = new MuleEndpointURI(out);

        MuleDescriptor d = new MuleDescriptor(name);
        d.setImplementation(BenchmarkComponent.class.getName());
        d.setThreadingProfile(new ThreadingProfile(config.getThreads(), config.getThreads(), -1, (byte) 4, null, null));
        d.setQueueProfile(new QueueProfile(config.getQueue(), false));
View Full Code Here

TOP

Related Classes of org.mule.impl.endpoint.MuleEndpointURI

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.