Stay organized with collections Save and categorize content based on your preferences.

ComponentNameMatchers

class ComponentNameMatchers


A collection of hamcrest matchers to match ComponentName objects.

Summary

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>!)

Public constructors

ComponentNameMatchers

ComponentNameMatchers()

Public functions

hasClassName

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

hasClassName

java-static fun hasClassName(classNameMatcher: Matcher<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(packageName: String!): Matcher<ComponentName>!

hasPackageName

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

hasShortClassName

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

hasShortClassName

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