Package com.microsoft.windowsazure.services.servicebus.models

Examples of com.microsoft.windowsazure.services.servicebus.models.QueueInfo


    @Test
    public void peekLockedMessageCanBeUnlocked() throws Exception {
        // Arrange
        String queueName = "TestPeekLockedMessageCanBeUnlocked";
        service.createQueue(new QueueInfo(queueName));
        service.sendQueueMessage(queueName, new BrokeredMessage("Hello Again"));
        BrokeredMessage peekedMessage = service.receiveQueueMessage(queueName,
                PEEK_LOCK_5_SECONDS).getValue();

        // Act
View Full Code Here


    @Test
    public void peekLockedMessageCanBeDeleted() throws Exception {
        // Arrange
        String queueName = "TestPeekLockedMessageCanBeDeleted";
        service.createQueue(new QueueInfo(queueName));
        service.sendQueueMessage(queueName, new BrokeredMessage("Hello Again"));
        BrokeredMessage peekedMessage = service.receiveQueueMessage(queueName,
                PEEK_LOCK_5_SECONDS).getValue();

        // Act
View Full Code Here

    @Test
    public void emptyQueueReturnsNullMessage() throws Exception {
        // Arrange
        String queueName = "testEmptyQueueReturnsNullMessage";
        service.createQueue(new QueueInfo(queueName));

        // Act
        BrokeredMessage brokeredMessage = service.receiveQueueMessage(
                queueName, PEEK_LOCK_5_SECONDS).getValue();
View Full Code Here

    @Test
    public void contentTypePassesThrough() throws Exception {
        // Arrange
        String queueName = "TestContentTypePassesThrough";
        service.createQueue(new QueueInfo(queueName));

        // Act
        service.sendQueueMessage(queueName, new BrokeredMessage(
                "<data>Hello Again</data>").setContentType("text/xml"));
View Full Code Here

                return response;
            }
        });

        // Act
        QueueInfo created = filtered.createQueue(
                new QueueInfo("TestFilterCanSeeAndChangeRequestOrResponse"))
                .getValue();

        // Assert
        assertNotNull(created);
        assertEquals(1, requests.size());
View Full Code Here

    @Test
    public void messagesMayHaveCustomProperties() throws ServiceException {
        // Arrange
        String queueName = "TestMessagesMayHaveCustomProperties";
        service.createQueue(new QueueInfo(queueName));

        // Act
        service.sendQueueMessage(queueName, new BrokeredMessage("")
                .setProperty("hello", "world").setProperty("foo", 42));
        BrokeredMessage message = service.receiveQueueMessage(queueName,
View Full Code Here

        }

        removeTopics();

        if (!testAlphaExists) {
            service.createQueue(new QueueInfo("TestAlpha"));
        }
    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.servicebus.models.QueueInfo

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.