and

public Matcher<T> and(Matcher<? super T> other)(source)

Returns a new matcher that logically combines the current matcher with the given matcher using the logical and operator.

Return

the new matcher

Parameters

other

the other matcher