> @@ -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());

Just out of curiosity, why? Too much effort? Like this, we get an "assertion 
failed" error in a test and have to use the line number to try to figure out 
what actually went wrong. Wouldn't "assertion failed: body null" (resp. 
"assertion failed: id null") help?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/57/files#r7882082

Reply via email to