Class EmulatorSpannerHelper (6.74.1)

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
Type Description
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
Type Description
boolean

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

Constructors

EmulatorSpannerHelper()

public EmulatorSpannerHelper()