ArrayContains
Matches an Array which contains elements that match the given matchers - note that two different matchers may be satisfied by the same item in the array.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.arrays.ArrayContains(matchers: any[])
Parameters
Name | Type | Description |
---|---|---|
matchers | any[] | any number of matchers, each of which must be found inside the array. |
import io.contract_testing.contractcase.definitions.matchers.arrays.ArrayContains;
new ArrayContains(java.util.List<java.lang.Object> matchers);
Parameters
Name | Type | Description |
---|---|---|
matchers | java.util.List<java.lang.Object> | any number of matchers, each of which must be found inside the array. |