Skip to content

Commit

Permalink
Make LocalStorageHelper a utility class
Browse files Browse the repository at this point in the history
  • Loading branch information
shinfan committed Apr 25, 2017
1 parent 65ca307 commit 7c29209
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
* Utility to create an in-memory storage configuration for testing. Storage options can be
* obtained via the {@link #getOptions()} method. Returned options will point to FakeStorageRpc.
*/
public class LocalStorageHelper {
public final class LocalStorageHelper {

// used for testing. Will throw if you pass it an option.
private static final FakeStorageRpc instance = new FakeStorageRpc(true);

private LocalStorageHelper() {}

/**
* Returns a {@link 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.
Expand Down

0 comments on commit 7c29209

Please sign in to comment.