Package com.google.cloud.bigtable.emulator.v2 (2.33.0)

Classes

BigtableEmulatorRule

The BigtableEmulatorRule manages the lifecycle of the Bigtable Emulator. Before the start of a test, the emulator will be started on a random port and will be shutdown after the test finishes.

Example usage: {@literal @RunWith(JUnit4.class)} public class MyTest { {@literal @Rule} public final BigtableEmulatorRule bigtableEmulator = BigtableEmulatorRule.create();

 {@literal @Test}
 public void testUsingEmulator() {
    ManagedChannel adminChannel = bigtableEmulator.getAdminChannel();
    // Do something with channel
 }

}

Emulator

Wraps the Bigtable emulator in a java api and decorates it with grpc channel builders.

This class will use the golang binaries embedded in this jar to launch the emulator as an external process and redirect its output to a Logger.