UriEncodedString
Convenience matcher to treat the string as a uri encoded string - useful in path segments.
During matching, the actual value is decoded with decodeUriComponent() and passed to the child matcher.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.http.UriEncodedString(child: any)
Parameters
| Name | Type | Description |
|---|---|---|
| child | any | Any string matcher or literal string. |
import io.contract_testing.contractcase.definitions.matchers.http.UriEncodedString;
new UriEncodedString(java.lang.Object child);
Parameters
| Name | Type | Description |
|---|---|---|
| child | java.lang.Object | Any string matcher or literal string. |