X - Type of item.public final class HasValues<X> extends MatcherEnvelope<Iterable<X>>
Iterable has particular elements.
Here is an example how HasValues can be used:
MatcherAssert.assertThat(
new ListOf<>(1, 2, 3),
new HasValues<>(2)
);| Constructor and Description |
|---|
HasValues(Iterable<X> expected)
Ctor.
|
HasValues(X... expected)
Ctor.
|
describeMismatchSafely, describeTo, matchesSafely@SafeVarargs public HasValues(X... expected)
expected - The expected values within unit test.Copyright © 2017–2019 jcabi.com. All rights reserved.