updated unit test

git-svn-id: http://jclouds.googlecode.com/svn/trunk@574 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-05-10 00:23:51 +00:00
parent a6b80c7beb
commit 151ebfb79b
1 changed files with 7 additions and 3 deletions

View File

@ -92,10 +92,14 @@ public class CopyObjectOptionsTest {
private void assertGoodMeta(CopyObjectOptions options) {
assert options != null;
assert options.getMetadata() != null;
assertEquals(options.getMetadata().size(), 2);
assertEquals(options.getMetadata().get(
"x-amz-copy-source-if-unmodified-since").iterator().next(),
Multimap<String,String> headers = options.buildRequestHeaders();
assertEquals(headers.size(), 2);
assertEquals(headers.get(
"x-amz-metadata-directive").iterator().next(),
"REPLACE");
assertEquals(options.getMetadata().size(), 1);
assertEquals(headers.get("x-amz-meta-adrian").iterator()
.next(), "foo");
assertEquals(options.getMetadata().get("x-amz-meta-adrian").iterator()
.next(), "foo");
}