And
Matches all of the provided matchers. Useful for combining restrictions provided by different matchers, or creating new matchers without needing plugins.
For best results, wrap the And matcher in a WithExample matcher.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.convenience.And(matchers: any[])
Parameters
| Name | Type | Description |
|---|---|---|
| matchers | any[] | An array of the matchers to run against this particular spot in the tree. |
import io.contract_testing.contractcase.definitions.matchers.convenience.And;
new And(java.util.List<java.lang.Object> matchers);
Parameters
| Name | Type | Description |
|---|---|---|
| matchers | java.util.List<java.lang.Object> | An array of the matchers to run against this particular spot in the tree. |