| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <E> Matcher | arrayWithSize(Matcher<? super Integer>
a matcher for the length of an examined array sizeMatcher)Creates a matcher for arrays that matches when the |
| public static <E> Matcher | arrayWithSize(int
the length that an examined array must have for a positive match size)Creates a matcher for arrays that matches when the |
| public static <E> Matcher | |
| protected Integer | featureValueOf(E[]
the target object actual)Implements abstract org. |
| IsArrayWithSize | back to summary |
|---|---|
| public IsArrayWithSize(Matcher<? super Integer> sizeMatcher) | |
| arrayWithSize | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for arrays that matches when the assertThat(new String[]{"foo", "bar"}, arrayWithSize(equalTo(2)))
| |
| arrayWithSize | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for arrays that matches when the assertThat(new String[]{"foo", "bar"}, arrayWithSize(2))
| |
| emptyArray | back to summary |
|---|---|
| public static <E> Matcher Creates a matcher for arrays that matches when the assertThat(new String[0], emptyArray()) | |
| featureValueOf | back to summary |
|---|---|
| protected Integer featureValueOf(E[] actual) Implements abstract org. Doc from org. Implement this to extract the interesting feature. | |