mirror of https://github.com/apache/jclouds.git
add name to blobs in BlobMap tests
This commit is contained in:
parent
752bc5ea08
commit
941612ad09
|
@ -64,7 +64,7 @@ public abstract class BaseBlobMapIntegrationTest extends BaseMapIntegrationTest<
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Blob apply(String arg0) {
|
public Blob apply(String arg0) {
|
||||||
return map.blobBuilder().payload(arg0).build();
|
return map.blobBuilder().name(arg0).payload(arg0).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ public abstract class BaseBlobMapIntegrationTest extends BaseMapIntegrationTest<
|
||||||
|
|
||||||
Map<String, Blob> newMap = Maps.newLinkedHashMap();
|
Map<String, Blob> newMap = Maps.newLinkedHashMap();
|
||||||
for (String key : keySet.build()) {
|
for (String key : keySet.build()) {
|
||||||
newMap.put(key, map.blobBuilder().payload(key).build());
|
newMap.put(key, map.blobBuilder().name(key).payload(key).build());
|
||||||
}
|
}
|
||||||
map.putAll(newMap);
|
map.putAll(newMap);
|
||||||
newMap.clear();
|
newMap.clear();
|
||||||
|
@ -280,7 +280,7 @@ public abstract class BaseBlobMapIntegrationTest extends BaseMapIntegrationTest<
|
||||||
protected void addTenObjectsUnderPrefix(String containerName, String prefix) throws InterruptedException {
|
protected void addTenObjectsUnderPrefix(String containerName, String prefix) throws InterruptedException {
|
||||||
BlobMap blobMap = createMap(view, containerName, inDirectory(prefix));
|
BlobMap blobMap = createMap(view, containerName, inDirectory(prefix));
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
blobMap.put(i + "", blobMap.blobBuilder().payload(i + "content").build());
|
blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@ public abstract class BaseBlobMapIntegrationTest extends BaseMapIntegrationTest<
|
||||||
protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
|
protected void addTenObjectsUnderRoot(String containerName) throws InterruptedException {
|
||||||
BlobMap blobMap = createMap(view, containerName, ListContainerOptions.NONE);
|
BlobMap blobMap = createMap(view, containerName, ListContainerOptions.NONE);
|
||||||
for (int i = 0; i < 10; i++) {
|
for (int i = 0; i < 10; i++) {
|
||||||
blobMap.put(i + "", blobMap.blobBuilder().payload(i + "content").build());
|
blobMap.put(i + "", blobMap.blobBuilder().name(i + "").payload(i + "content").build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue