Package com.google.cloud.storage.testing
package com.google.cloud.storage.testing
A testing helper for Google Cloud Storage.
A simple usage example:
Before the test:
RemoteStorageHelper helper = RemoteStorageHelper.create();
Storage storage = helper.getOptions().getService();
String bucket = RemoteStorageHelper.generateBucketName();
storage.create(BucketInfo.of(bucket));
After the test:
RemoteStorageHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS);
- See Also:
-
ClassDescriptionUtility to create a remote storage configuration for testing.A stub implementation of
StorageRpc
which can be used outside of the Storage module for testing purposes.