Class EmulatorSpannerHelper

java.lang.Object
com.google.cloud.spanner.testing.EmulatorSpannerHelper

public class EmulatorSpannerHelper extends Object
Utility class for checking emulator state for tests
  • Field Details

  • 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.