ExactlyLike
Everything inside this matcher will be matched exactly, unless overridden with a generic matcher (eg AnyString or ShapedLike).
Use this to switch
out of shapedLike and back to the default exact matching.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.modifiers.ExactlyLike(content: any)
Parameters
| Name | Type | Description |
|---|---|---|
| content | any | The object, array, primitive or matcher to match exactly. |
import io.contract_testing.contractcase.definitions.matchers.modifiers.ExactlyLike;
new ExactlyLike(java.lang.Object content);
Parameters
| Name | Type | Description |
|---|---|---|
| content | java.lang.Object | The object, array, primitive or matcher to match exactly. |