ComponentNameMatchers


@CheckReturnValue
class ComponentNameMatchers


A collection of hamcrest matchers to match ComponentName objects.

Summary

Public functions

java-static Matcher<ComponentName!>!
hasClassName(classNameMatcher: Matcher<String!>!)
java-static Matcher<ComponentName!>!
hasClassName(className: String!)
java-static Matcher<ComponentName!>!

Matches a component based on the target package name found through the Instrumentation Registry for the test.

java-static Matcher<ComponentName!>!
hasPackageName(packageNameMatcher: Matcher<String!>!)
java-static Matcher<ComponentName!>!
hasPackageName(packageName: String!)
java-static Matcher<ComponentName!>!
hasShortClassName(shortClassNameMatcher: Matcher<String!>!)
java-static Matcher<ComponentName!>!
hasShortClassName(shortClassName: String!)

Public functions

hasClassName

java-static fun hasClassName(classNameMatcher: Matcher<String!>!): Matcher<ComponentName!>!

hasClassName

java-static fun hasClassName(className: String!): Matcher<ComponentName!>!

hasMyPackageName

java-static fun hasMyPackageName(): Matcher<ComponentName!>!

Matches a component based on the target package name found through the Instrumentation Registry for the test.

hasPackageName

java-static fun hasPackageName(packageNameMatcher: Matcher<String!>!): Matcher<ComponentName!>!

hasPackageName

java-static fun hasPackageName(packageName: String!): Matcher<ComponentName!>!

hasShortClassName

java-static fun hasShortClassName(shortClassNameMatcher: Matcher<String!>!): Matcher<ComponentName!>!

hasShortClassName

java-static fun hasShortClassName(shortClassName: String!): Matcher<ComponentName!>!