Class EmulatorSpannerHelper (6.23.4)

public class EmulatorSpannerHelper

Utility class for checking emulator state for tests

Inheritance

java.lang.Object > EmulatorSpannerHelper

Static Fields

SPANNER_EMULATOR_HOST

public static final String SPANNER_EMULATOR_HOST
Field Value
TypeDescription
String

Static Methods

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
TypeDescription
boolean

true if the emulator is being used. Returns false otherwise.

Constructors

EmulatorSpannerHelper()

public EmulatorSpannerHelper()