public final class

IntentStubberRegistry

extends Object
java.lang.Object
   ↳ android.support.test.runner.intent.IntentStubberRegistry

Class Overview

Exposes an implementation of IntentStubber.

Summary

Public Methods
static IntentStubber getInstance()
Returns the loaded Intent Stubber mInstance.
static boolean isLoaded()
static void load(IntentStubber intentStubber)
Loads an IntentStubber into this registry.
synchronized static void reset()
Clears the current instance of Intent Stubber.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static IntentStubber getInstance ()

Returns the loaded Intent Stubber mInstance.

Throws
IllegalStateException if this method is not called on the main thread.
IllegalStateException if no Intent Stubber has been loaded.

public static boolean isLoaded ()

Returns

public static void load (IntentStubber intentStubber)

Loads an IntentStubber into this registry. There can only be one active stubber at a time.

Calling this method multiple times in the same instrumentation will result in an exception.

This method can be called from any thread.

public static synchronized void reset ()

Clears the current instance of Intent Stubber.