mirror of https://github.com/apache/jclouds.git
updated unit test
git-svn-id: http://jclouds.googlecode.com/svn/trunk@574 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
a6b80c7beb
commit
151ebfb79b
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue