{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class ComponentNameMatchers
A collection of hamcrest matchers to match ComponentName objects.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static Matcher<ComponentName>! |
hasClassName(className: String!) |
java-static Matcher<ComponentName>! |
hasClassName(classNameMatcher: Matcher<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(packageName: String!) |
java-static Matcher<ComponentName>! |
hasPackageName(packageNameMatcher: Matcher<String>!) |
java-static Matcher<ComponentName>! |
hasShortClassName(shortClassName: String!) |
java-static Matcher<ComponentName>! |
hasShortClassName(shortClassNameMatcher: Matcher<String>!) |
java-static fun hasClassName(classNameMatcher: Matcher<String>!): Matcher<ComponentName>!
java-static fun hasMyPackageName(): Matcher<ComponentName>!
Matches a component based on the target package name found through the Instrumentation Registry for the test.
java-static fun hasPackageName(packageNameMatcher: Matcher<String>!): Matcher<ComponentName>!
java-static fun hasShortClassName(shortClassName: String!): Matcher<ComponentName>!
java-static fun hasShortClassName(shortClassNameMatcher: Matcher<String>!): Matcher<ComponentName>!