ShapedLike
Everything inside this matcher will be matched on the shape of the data (ie, type alone), unless overridden with other matchers.
Use this to switch out
of the default exactlyLike
matching.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.modifiers.ShapedLike(content: any)
Parameters
Name | Type | Description |
---|---|---|
content | any | The object, array, primitive or matcher to match the shape against. |
import io.contract_testing.contractcase.definitions.matchers.modifiers.ShapedLike;
new ShapedLike(java.lang.Object content);
Parameters
Name | Type | Description |
---|---|---|
content | java.lang.Object | The object, array, primitive or matcher to match the shape against. |