ComponentNameBuilder

public final class ComponentNameBuilder

Class for building ComponentName matchers

Constructors

Functions

Link copied to clipboard
public final Matcher<ComponentName> getMatcher()
Link copied to clipboard
public final Unit hasClassName(String className)
public final Unit hasClassName(Matcher<String> className)

Matches component name with given class

Link copied to clipboard
public final Unit hasMyPackageName()

Matches component name if it's package name the same as your app's

Link copied to clipboard
public final Unit hasPackageName(String packageName)
public final Unit hasPackageName(Matcher<String> packageName)

Matches component name with given package

Link copied to clipboard
public final Unit hasShortClassName(String className)
public final Unit hasShortClassName(Matcher<String> className)

Matches component name with given short class name