Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing subpackages #221

Merged
merged 4 commits into from
Oct 8, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update examples in package-info
  • Loading branch information
Ajay Kannan committed Oct 8, 2015
commit d8478d7f445682488bcfc60a57be392e299146a1
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,22 @@
* A testing helper for Google Cloud Datastore.
*
* <p>A simple usage example:
* <p>Before the test:
* <pre> {@code
* LocalGcdHelper gcdHelper = LocalGcdHelper.start(PROJECT_ID, PORT_NUMBER);

This comment was marked as spam.

* DatastoreOptions options = DatastoreOptions.builder()
* .projectId(PROJECT_ID)
* .host("localhost:8080")
* .build();
* Datastore localDatastore = DatastoreFactory.instance().get(options);
* } </pre>
*
* // Do tests
*
* <p>After the test:
* <pre> {@code
* gcdHelper.stop();
* } </pre>
*
* @see <a href="https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/TESTING.md">
* @see <a href="https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/TESTING.md#testing-code-that-uses-datastore">
* gcloud-java tools for testing</a>
*/
package com.google.gcloud.datastore.testing;
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@
/**
* A testing helper for Google Cloud Storage.
*
* <p>A simple usage example, after setting the required environment variables (see the link below):
* <p>A simple usage example:
* <p>Before the test:
* <pre> {@code
* RemoteGcsHelper gcsHelper = RemoteGcsHelper.create();
* RemoteGcsHelper gcsHelper = RemoteGcsHelper.create(PROJECT_ID, "/path/to/JSON/key.json");
* Storage storage = StorageFactory.instance().get(gcsHelper.options());
* String bucket = RemoteGcsHelper.generateBucketName();
* storage.create(BucketInfo.of(bucket));
*
* // Do tests
*
* } </pre>
*
* <p>After the test:
* <pre> {@code
* RemoteGcsHelper.forceDelete(storage, bucket, 5, TimeUnit.SECONDS);
* } </pre>
*
* @see <a href="https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/TESTING.md">
* @see <a href="https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/TESTING.md#testing-code-that-uses-storage">
* gcloud-java tools for testing</a>
*/
package com.google.gcloud.storage.testing;
package com.google.gcloud.storage.testing;