IntentStubberRegistry

public final class IntentStubberRegistry
extends Object

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


公开 IntentStubber的实现。

Summary

Public methods

static IntentStubber getInstance()

返回加载的Intent Stubber mInstance。

static boolean isLoaded()
static void load(IntentStubber intentStubber)

IntentStubber加载到此注册表中。

static void reset()

清除当前的Intent Stubber实例。

Inherited methods

From class java.lang.Object

Public methods

getInstance

IntentStubber getInstance ()

返回加载的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.

isLoaded

boolean isLoaded ()

Returns
boolean if an IntentStubber has been loaded.

load

void load (IntentStubber intentStubber)

IntentStubber加载到此注册表中。 一次只能有一个活动的吸尘器。

在相同的仪器中多次调用此方法将导致异常。

这个方法可以从任何线程调用。

Parameters
intentStubber IntentStubber

reset

void reset ()

清除当前的Intent Stubber实例。