java.lang.Object | |
↳ | android.support.test.espresso.intent.ResettingStubberImpl |
Implementation of ResettingStubber
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the first matching stubbed result for the given activity if stubbed result was set
by test author.
| |||||||||||
Marks this spy as initialized.
| |||||||||||
Clears state (initialization, expected responses).
| |||||||||||
Sets the result that will be returned to the intent sender (if the sender expects the
result), next time an intent matched by the given matcher is launched.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.support.test.espresso.intent.ResettingStubber
| |||||||||||
From interface
android.support.test.runner.intent.IntentStubber
|
Returns the first matching stubbed result for the given activity if stubbed result was set
by test author. The method searches the list of existing matcher/response pairs in reverse
order of which they were entered; i.e. the last stubbing has the highest priority. If no
stubbed result matching the given intent is found, null
is returned.
Must be called on main thread.
Marks this spy as initialized. Once initialized, ResettingStubber begins recording intents and provides intent stubbing.
Clears state (initialization, expected responses).
Must be called on main thread.
Sets the result that will be returned to the intent sender (if the sender expects the result), next time an intent matched by the given matcher is launched.