public class IsArrayWithSize<E> extends FeatureMatcher<E[],Integer>
| Constructor and Description |
|---|
IsArrayWithSize(Matcher<? super Integer> sizeMatcher) |
| Modifier and Type | Method and Description |
|---|---|
static <E> Matcher<E[]> |
arrayWithSize(int size)
This is a shortcut to the frequently used arrayWithSize(equalTo(x)).
|
static <E> Matcher<E[]> |
arrayWithSize(Matcher<? super Integer> sizeMatcher)
Does array size satisfy a given matcher?
|
static <E> Matcher<E[]> |
emptyArray()
Matches an empty array.
|
protected Integer |
featureValueOf(E[] actual)
Implement this to extract the interesting feature.
|
describeTo, matchesSafelydescribeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringprotected Integer featureValueOf(E[] actual)
FeatureMatcherfeatureValueOf in class FeatureMatcher<E[],Integer>actual - the target objectpublic static <E> Matcher<E[]> arrayWithSize(Matcher<? super Integer> sizeMatcher)
public static <E> Matcher<E[]> arrayWithSize(int size)
public static <E> Matcher<E[]> emptyArray()
Copyright © 2016. All rights reserved.