> @@ -136,6 +144,23 @@ public void streamManyPagesOfMessages() throws Exception
> {
> }
>
> @Test(dependsOnMethods = { "streamManyPagesOfMessages" })
> + public void listMessagesByIds() throws Exception {
> + for (String zoneId : api.getConfiguredZones()) {
> + MessageApi messageApi = api.getMessageApiForZoneAndQueue(zoneId,
> "jclouds-test");
> + UUID clientId =
> UUID.fromString("3381af92-2b9e-11e3-b191-71861300734c");
> +
> + List<Message> messages = messageApi.list(clientId,
> messageIds.get(zoneId));
> +
> + assertEquals(messages.size(), 4);
> +
> + for (Message message: messages) {
> + assertNotNull(message.getId());
> + assertNotNull(message.getBody());
[minor] Add messages to the asserts?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/57/files#r7881678