| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Integer | featureValueOf(Collection<? extends E>
the target object actual)Implements abstract org. |
| public static <E> Matcher | hasSize(Matcher<? super Integer>
a matcher for the size of an examined sizeMatcher)java.Creates a matcher for |
| public static <E> Matcher | hasSize(int
the expected size of an examined size)java.Creates a matcher for |
| IsCollectionWithSize | back to summary |
|---|---|
| public IsCollectionWithSize(Matcher<? super Integer> sizeMatcher) | |
| featureValueOf | back to summary |
|---|---|
| protected Integer featureValueOf(Collection<? extends E> actual) Implements abstract org. Doc from org. Implement this to extract the interesting feature.
| |
| hasSize | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo", "bar"), hasSize(equalTo(2)))
| |
| hasSize | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for assertThat(Arrays.asList("foo", "bar"), hasSize(2))
| |