public class CollectionSizeMatcher<T> extends TypeSafeMatcher<Iterable<T>>
Constructor and Description |
---|
CollectionSizeMatcher(int size) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(Description desc) |
boolean |
matchesSafely(Iterable<T> iterable) |
static <T> Matcher<Iterable<T>> |
size(int length,
Class<T> clazz) |
describeMismatch, describeMismatchSafely, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public CollectionSizeMatcher(int size)
public boolean matchesSafely(Iterable<T> iterable)
matchesSafely
in class TypeSafeMatcher<Iterable<T>>
public void describeTo(Description desc)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.