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