See: Description
Class | Description |
---|---|
RemoteStorageHelper |
Utility to create a remote storage configuration for testing.
|
Exception | Description |
---|---|
RemoteStorageHelper.StorageHelperException |
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);
Copyright © 2019 Google LLC. All rights reserved.