/AWS1/CL_SFNMOCKINPUT¶
A JSON object that contains a mocked result or errorOutput.
CONSTRUCTOR¶
IMPORTING¶
Optional arguments:¶
iv_result TYPE /AWS1/SFNSENSITIVEDATA /AWS1/SFNSENSITIVEDATA¶
A JSON string containing the mocked result of the state invocation.
io_erroroutput TYPE REF TO /AWS1/CL_SFNMOCKERROROUTPUT /AWS1/CL_SFNMOCKERROROUTPUT¶
The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an
errorandcausefield.
iv_fieldvalidationmode TYPE /AWS1/SFNMOCKRESPONSEVLDTNMODE /AWS1/SFNMOCKRESPONSEVLDTNMODE¶
Determines the level of strictness when validating mocked results against their respective API models. Values include:
STRICT: All required fields must be present, and all present fields must conform to the API's schema.
PRESENT: All present fields must conform to the API's schema.
NONE: No validation is performed.If no value is specified, the default value is
STRICT.
Queryable Attributes¶
result¶
A JSON string containing the mocked result of the state invocation.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RESULT() |
Getter for RESULT, with configurable default |
ASK_RESULT() |
Getter for RESULT w/ exceptions if field has no value |
HAS_RESULT() |
Determine if RESULT has a value |
errorOutput¶
The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an
errorandcausefield.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ERROROUTPUT() |
Getter for ERROROUTPUT |
fieldValidationMode¶
Determines the level of strictness when validating mocked results against their respective API models. Values include:
STRICT: All required fields must be present, and all present fields must conform to the API's schema.
PRESENT: All present fields must conform to the API's schema.
NONE: No validation is performed.If no value is specified, the default value is
STRICT.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_FIELDVALIDATIONMODE() |
Getter for FIELDVALIDATIONMODE, with configurable default |
ASK_FIELDVALIDATIONMODE() |
Getter for FIELDVALIDATIONMODE w/ exceptions if field has no |
HAS_FIELDVALIDATIONMODE() |
Determine if FIELDVALIDATIONMODE has a value |