newArrayContainsMatcher

Creates a new array contains matcher for a specific value in the array.

Return

A new ValueMatcher instance.

Parameters

predicate

The predicate to apply to the value at the specified index.

index

The index of the value.


Creates a new array contains matcher that will check the entire array.

Return

A new ValueMatcher instance.

Parameters

predicate

The predicate to apply to each value of the array.