Google is committed to advancing racial equity for Black communities. See how.

DebugAppCheckTestHelper

public final class DebugAppCheckTestHelper extends Object

Helper class for using DebugAppCheckProviderFactory in integration tests.

Nested Class Summary

interface DebugAppCheckTestHelper.MaybeThrowingRunnable<E extends Throwable>  

Public Method Summary

static DebugAppCheckTestHelper
fromInstrumentationArgs()
Create a DebugAppCheckTestHelper instance with the debug secret obtained from InstrumentationRegistry arguments.
<E extends Throwable> void
withDebugProvider(MaybeThrowingRunnable<E> runnable)
Installs a DebugAppCheckProviderFactory to the default FirebaseApp and runs the test code in runnable.
<E extends Throwable> void
withDebugProvider(FirebaseApp firebaseApp, MaybeThrowingRunnable<E> runnable)
Installs a DebugAppCheckProviderFactory to the provided FirebaseApp and runs the test code in runnable.

Inherited Method Summary

Public Methods

public static DebugAppCheckTestHelper fromInstrumentationArgs ()

Create a DebugAppCheckTestHelper instance with the debug secret obtained from InstrumentationRegistry arguments.

public void withDebugProvider (MaybeThrowingRunnable<E> runnable)

Installs a DebugAppCheckProviderFactory to the default FirebaseApp and runs the test code in runnable.

Throws
Throwable

public void withDebugProvider (FirebaseApp firebaseApp, MaybeThrowingRunnable<E> runnable)

Installs a DebugAppCheckProviderFactory to the provided FirebaseApp and runs the test code in runnable.

Throws
Throwable