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

Returns
IntentStubber
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
boolean if an IntentStubber has been loaded.

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.

Parameters
intentStubber IntentStubber

public static void reset ()

Clears the current instance of Intent Stubber.