public final class LocalStorageHelper extends Object
getOptions()
method. Returned options will point to FakeStorageRpc.
Note, the created in-memory storage configuration supports limited set of operations and is not thread-safe:
FakeStorageRpc.list(String, java.util.Map)
lists all the objects that have been created
rather than the objects in the provided bucket. Since this class does not support creating,
listing and deleting buckets, the parameter bucket here is not actually used and on serves as a
placeholder.Modifier and Type | Method and Description |
---|---|
static StorageOptions |
customOptions(boolean throwIfOptions)
Returns a
StorageOptions that creates a new FakeStorageRpc instance with the given
option. |
static StorageOptions |
getOptions()
Returns a
StorageOptions that use the static FakeStorageRpc instance, and resets it
first so you start from a clean slate. |
public static StorageOptions getOptions()
StorageOptions
that use the static FakeStorageRpc instance, and resets it
first so you start from a clean slate. That instance will throw if you pass it any option.public static StorageOptions customOptions(boolean throwIfOptions)
StorageOptions
that creates a new FakeStorageRpc instance with the given
option.Copyright © 2019 Google LLC. All rights reserved.