Class EmulatorSpannerHelper

public class EmulatorSpannerHelper

Utility class for checking emulator state for tests

Inheritance

java.lang.Object > EmulatorSpannerHelper

Constructors

EmulatorSpannerHelper()

public EmulatorSpannerHelper()

Fields

SPANNER_EMULATOR_HOST

public static final String SPANNER_EMULATOR_HOST
Field Value
TypeDescription
String

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.