StringContaining
Matches any string that contains the given substring.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.strings.StringContaining(substring: string, example: string)
Parameters
Name | Type | Description |
---|---|---|
substring | string | The substring that the matcher must contain. |
example | string | An example string that passes this matcher. |
import io.contract_testing.contractcase.definitions.matchers.strings.StringContaining;
new StringContaining(java.lang.String substring, java.lang.String example);
Parameters
Name | Type | Description |
---|---|---|
substring | java.lang.String | The substring that the matcher must contain. |
example | java.lang.String | An example string that passes this matcher. |