Package com.microsoft.windowsazure.services.queue.models.ListMessagesResult

Examples of com.microsoft.windowsazure.services.queue.models.ListMessagesResult.QueueMessage


        // Assert
        assertNotNull(result);
        assertEquals(1, result.getQueueMessages().size());

        QueueMessage entry = result.getQueueMessages().get(0);

        assertNotNull(entry.getMessageId());
        assertNotNull(entry.getMessageText());
        assertNotNull(entry.getPopReceipt());
        assertEquals(1, entry.getDequeueCount());

        assertNotNull(entry.getExpirationDate());
        assertTrue(year2010.before(entry.getExpirationDate()));

        assertNotNull(entry.getInsertionDate());
        assertTrue(year2010.before(entry.getInsertionDate()));

        assertNotNull(entry.getTimeNextVisible());
        assertTrue(year2010.before(entry.getTimeNextVisible()));
    }
View Full Code Here


        // Assert
        assertNotNull(result);
        assertEquals(4, result.getQueueMessages().size());
        for (int i = 0; i < 4; i++) {
            QueueMessage entry = result.getQueueMessages().get(i);

            assertNotNull(entry.getMessageId());
            assertNotNull(entry.getMessageText());
            assertNotNull(entry.getPopReceipt());
            assertEquals(1, entry.getDequeueCount());

            assertNotNull(entry.getExpirationDate());
            assertTrue(year2010.before(entry.getExpirationDate()));

            assertNotNull(entry.getInsertionDate());
            assertTrue(year2010.before(entry.getInsertionDate()));

            assertNotNull(entry.getTimeNextVisible());
            assertTrue(year2010.before(entry.getTimeNextVisible()));
        }
    }
View Full Code Here

        assertNotNull(updateResult.getPopReceipt());
        assertNotNull(updateResult.getTimeNextVisible());
        assertTrue(year2010.before(updateResult.getTimeNextVisible()));

        assertNotNull(listResult2);
        QueueMessage entry = listResult2.getQueueMessages().get(0);

        assertEquals(listResult1.getQueueMessages().get(0).getMessageId(),
                entry.getMessageId());
        assertEquals("new text", entry.getMessageText());
        assertNotNull(entry.getPopReceipt());
        assertEquals(2, entry.getDequeueCount());

        assertNotNull(entry.getExpirationDate());
        assertTrue(year2010.before(entry.getExpirationDate()));

        assertNotNull(entry.getInsertionDate());
        assertTrue(year2010.before(entry.getInsertionDate()));

        assertNotNull(entry.getTimeNextVisible());
        assertTrue(year2010.before(entry.getTimeNextVisible()));

    }
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.queue.models.ListMessagesResult.QueueMessage

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.