Base64Encoded
Transformation matcher that matches a base64 encoded version of the given string or string matcher.
WARNING: Since many strings are accidentally decodable as base64, this matcher is
best combined with a more restrictive string matcher (eg StringifiedJson
).
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.strings.Base64Encoded(child: any)
Parameters
Name | Type | Description |
---|---|---|
child | any | The string or string matcher that would match the decoded string. |
import io.contract_testing.contractcase.definitions.matchers.strings.Base64Encoded;
new Base64Encoded(java.lang.Object child);
Parameters
Name | Type | Description |
---|---|---|
child | java.lang.Object | The string or string matcher that would match the decoded string. |