SwingMatcher

A predicate over a single AWT Component together with a human-readable description used in failure messages. Matchers are combined with and, or and not, and narrow a query wherever a finder, a filter or an assertion takes one.

Matching reads component state directly; callers are responsible for invoking matchers on the EDT (the finder infrastructure does this).

Types

Link copied to clipboard
object Companion

Built-in matchers, and the entry point for building others with and, or and not.

Properties

Link copied to clipboard

what this matcher looks for, as it reads in a failure message.

Functions

Link copied to clipboard
infix fun and(other: SwingMatcher): SwingMatcher

Returns a matcher satisfied only when both this and other match.

Link copied to clipboard
fun matches(component: Component): Boolean

Evaluates this matcher against component. Must be called on the EDT.

Link copied to clipboard
operator fun not(): SwingMatcher

Returns a matcher satisfied exactly when this one is not.

Link copied to clipboard
infix fun or(other: SwingMatcher): SwingMatcher

Returns a matcher satisfied when this or other matches.