Package com.google.cloud.spanner.testing
Class EmulatorSpannerHelper
java.lang.Object
com.google.cloud.spanner.testing.EmulatorSpannerHelper
Utility class for checking emulator state for tests
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks whether the emulator is being used.
-
Field Details
-
SPANNER_EMULATOR_HOST
- See Also:
-
-
Constructor Details
-
EmulatorSpannerHelper
public EmulatorSpannerHelper()
-
-
Method Details
-
isUsingEmulator
public static boolean isUsingEmulator()Checks whether the emulator is being used. This is done by checking if the SPANNER_EMULATOR_HOST environment variable is set.- Returns:
- true if the emulator is being used. Returns false otherwise.
-