hasComponent

public final Unit hasComponent(String className)

Matches intent which component has given class name

Parameters

className

Class name to be matched in intent's component


public final Unit hasComponent(ComponentName component)

Matches intent with given component

Parameters

component

Component name to be matched


public final Unit hasComponent(Matcher<ComponentName> component)

Matches intent with given component

Parameters

component

Matcher for component name


public final Unit hasComponent(Function1<ComponentNameBuilder, Unit> function)

Matches intent with given component

Parameters

function

Builder for a component to match