jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added Blobstore Abstraction (#48)
Date Sat, 20 Sep 2014 03:45:35 GMT
> +         PageSet<? extends StorageMetadata> container = view.getBlobStore().list(containerName,
> +                  maxResults(1).withDetails());
> +
> +         BlobMetadata metadata = BlobMetadata.class.cast(get(container, 0));
> +
> +         assert metadata.getContentMetadata().getContentType().startsWith("text/plain")
: metadata.getContentMetadata()
> +                  .getContentType();
> +         assertEquals(metadata.getContentMetadata().getContentLength(), Long.valueOf(TEST_STRING.length()));
> +         assertEquals(metadata.getUserMetadata().get("adrian"), "powderpuff");
> +         checkMD5(metadata);
> +      } finally {
> +         returnContainer(containerName);
> +      }
> +   }
> +
> +   /** Google Cloud Storage lists prefixes and objects in two different lists */

[minor] No need for Javadoc in tests? `// ...` instead?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/48/files#r17817728
Mime
View raw message