Package org.apache.qpid.server.binding

Examples of org.apache.qpid.server.binding.Binding


    }

    protected void unbind(TestQueue queue, String... bindings) throws AMQException
    {
        String queueName = queue.getName();
        exchange.onUnbind(new Binding(null, queueName, queue, exchange, getHeadersMap(bindings)));
    }
View Full Code Here


    private TestQueue bind(String key, String queueName, Map<String,Object> args) throws AMQException
    {
        TestQueue queue = new TestQueue(new AMQShortString(queueName), _virtualHost);
        queues.add(queue);
        exchange.onBind(new Binding(null, key, queue, exchange, args));
        return queue;
    }
View Full Code Here

    }

    public void testNoRoute() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a*#b", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.*.#.b",queue, _exchange, null));


        IncomingMessage message = createMessage("a.b");
        routeMessage(message);

View Full Code Here

    }

    public void testDirectMatch() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "ab", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.b",queue, _exchange, null));


        IncomingMessage message = createMessage("a.b");

        routeMessage(message);
View Full Code Here


    public void testStarMatch() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a*", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.*",queue, _exchange, null));


        IncomingMessage message = createMessage("a.b");

        routeMessage(message);
View Full Code Here

    }

    public void testHashMatch() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a#", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.#",queue, _exchange, null));


        IncomingMessage message = createMessage("a.b.c");

        int queueCount = routeMessage(message);
View Full Code Here


    public void testMidHash() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.*.#.b",queue, _exchange, null));


        IncomingMessage message = createMessage("a.c.d.b");

        routeMessage(message);
View Full Code Here

    }

    public void testMatchafterHash() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a#", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.*.#.b.c",queue, _exchange, null));


        IncomingMessage message = createMessage("a.c.b.b");

        int queueCount = routeMessage(message);
View Full Code Here


    public void testHashAfterHash() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a#", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.*.#.b.c.#.d",queue, _exchange, null));


        IncomingMessage message = createMessage("a.c.b.b.c");

        int queueCount = routeMessage(message);
View Full Code Here

    }

    public void testHashHash() throws AMQException
    {
        AMQQueue queue = AMQQueueFactory.createAMQQueueImpl(UUIDGenerator.generateRandomUUID(), "a#", false, null, false, false, _vhost, null);
        _exchange.registerQueue(new Binding(null, "a.#.*.#.d",queue, _exchange, null));


        IncomingMessage message = createMessage("a.c.b.b.c");

        int queueCount = routeMessage(message);
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.binding.Binding

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.