ArrayEachEntryMatchesWithExample
Matches an array where each element matches the provided matcher, but with a custom example for the whole array.
This example must still pass the provided matcher
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.arrays.ArrayEachEntryMatchesWithExample(matcher: any, example: any[])
Parameters
Name | Type | Description |
---|---|---|
matcher | any | The matcher for each entry in the array. |
example | any[] | An optional example of the whole array to return. |
import io.contract_testing.contractcase.definitions.matchers.arrays.ArrayEachEntryMatchesWithExample;
new ArrayEachEntryMatchesWithExample(java.lang.Object matcher, java.util.List<java.lang.Object> example);
Parameters
Name | Type | Description |
---|---|---|
matcher | java.lang.Object | The matcher for each entry in the array. |
example | java.util.List<java.lang.Object> | An optional example of the whole array to return. |