T - The type of the Matcher.public abstract class MatcherEnvelope<T>
extends org.hamcrest.TypeSafeMatcher<T>
| Modifier | Constructor and Description |
|---|---|
protected |
MatcherEnvelope(org.cactoos.Func<T,Boolean> match,
org.cactoos.Proc<org.hamcrest.Description> description,
org.cactoos.BiProc<T,org.hamcrest.Description> mismatch)
Ctor.
|
protected |
MatcherEnvelope(org.hamcrest.Matcher<T> origin)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
describeMismatchSafely(T item,
org.hamcrest.Description desc) |
void |
describeTo(org.hamcrest.Description desc) |
protected boolean |
matchesSafely(T item) |
protected MatcherEnvelope(org.cactoos.Func<T,Boolean> match, org.cactoos.Proc<org.hamcrest.Description> description, org.cactoos.BiProc<T,org.hamcrest.Description> mismatch)
match - Function matches an actual object with expected onedescription - Procedure generates a description of the objectmismatch - BiProcedure generates a description for situation when an
actual object does not match to the expected oneprotected MatcherEnvelope(org.hamcrest.Matcher<T> origin)
origin - Encapsulated matcher.Copyright © 2017–2019 jcabi.com. All rights reserved.