public class IsArray<T> extends TypeSafeMatcher<T[]>
Constructor and Description |
---|
IsArray(Matcher<? super T>[] elementMatchers) |
Modifier and Type | Method and Description |
---|---|
static <T> IsArray<T> |
array(Matcher<? super T>... elementMatchers)
Evaluates to true only if each matcher[i] is satisfied by array[i].
|
void |
describeMismatchSafely(T[] actual,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
protected String |
descriptionEnd()
Returns the string that ends the description.
|
protected String |
descriptionSeparator()
Returns the string that separates the elements in the description.
|
protected String |
descriptionStart()
Returns the string that starts the description.
|
boolean |
matchesSafely(T[] array)
Subclasses should implement this.
|
describeMismatch, matches
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matchesSafely(T[] array)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<T[]>
public void describeMismatchSafely(T[] actual, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<T[]>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.protected String descriptionStart()
protected String descriptionSeparator()
protected String descriptionEnd()
Copyright © 2016. All rights reserved.