intending

Mocks next coming intent that will match with provided result. If no result provided as parameter, function will look up default one set via withResult() in IntentBuilder. If none are present, IllegalStateException will be thrown

Parameters

result

Activity result to return when matched intent is sent. null by default

See also

Throws

if result is null and default result is not set


public final Unit intending(Function1<ActivityResultBuilder, Unit> result)

Mocks next coming intent that will match with provided result.

Parameters

result

Builder for activity result to return when matching intent is sent