Skip navigation links

Package com.google.cloud.storage.testing

A testing helper for Google Cloud Storage.

See: Description

Package com.google.cloud.storage.testing Description

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:
Google Cloud Java tools for testing
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.