fix broken S3 moving test

This commit is contained in:
Xavier Léauté 2014-07-15 10:58:46 -07:00
parent f2e0dc9327
commit 12bc3ac27b
1 changed files with 10 additions and 7 deletions

View File

@ -133,15 +133,18 @@ public class S3DataSegmentMoverTest
} }
@Override @Override
public StorageObject getObjectDetails(String bucketName, String objectKey) throws ServiceException public S3Object[] listObjects(String bucketName, String objectKey, String separator)
{ {
if (isObjectInBucket(bucketName, objectKey)) { try {
final S3Object object = new S3Object(objectKey); if (isObjectInBucket(bucketName, objectKey)) {
object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD); final S3Object object = new S3Object(objectKey);
return object; object.setStorageClass(S3Object.STORAGE_CLASS_STANDARD);
} else { return new S3Object[]{object};
return null; }
} catch (ServiceException e) {
// return empty list
} }
return new S3Object[]{};
} }
@Override @Override