Class ContractCaseCoreBehaviour.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.interactions.base.ContractCaseCoreBehaviour.Jsii$Proxy
-
- All Implemented Interfaces:
ContractCaseCoreBehaviour,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContractCaseCoreBehaviour
@Stability(Stable) @Internal public static final class ContractCaseCoreBehaviour.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContractCaseCoreBehaviour
An implementation forContractCaseCoreBehaviour
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.contract_testing.contractcase.definitions.interactions.base.ContractCaseCoreBehaviour
ContractCaseCoreBehaviour.Builder, ContractCaseCoreBehaviour.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ContractCaseCoreBehaviour.Builder builder)Constructor that initializes the object based on literal property values passed by theContractCaseCoreBehaviour.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetMockType()The type of this mock.StringgetStateVariables()Whether or not this mock mode will invoke state handlers.StringgetTriggers()Whether or not this mock mode needs to be triggered by user-provided code.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ContractCaseCoreBehaviour.Builder builder)
Constructor that initializes the object based on literal property values passed by theContractCaseCoreBehaviour.Builder.
-
-
Method Detail
-
getMockType
public final String getMockType()
Description copied from interface:ContractCaseCoreBehaviourThe type of this mock.Usually this is inverted on read vs write, for example, a written MOCK_HTTP_CLIENT might become a MOCK_HTTP_SERVER during reading.
This will almost always be the same as the top level type for your mock during read - but if it is different, ContractCase will respect this value.
- Specified by:
getMockTypein interfaceContractCaseCoreBehaviour
-
getStateVariables
public final String getStateVariables()
Description copied from interface:ContractCaseCoreBehaviourWhether or not this mock mode will invoke state handlers.If set to
"default"then ContractCase will not invoke or require the state handlers and will use the default values for all state variables. If set to"state", then ContractCase will invoke the state handlers and require the expected variables to be returned.All other values are errors.
- Specified by:
getStateVariablesin interfaceContractCaseCoreBehaviour
-
getTriggers
public final String getTriggers()
Description copied from interface:ContractCaseCoreBehaviourWhether or not this mock mode needs to be triggered by user-provided code.If
"provided"then ContractCase will require the user to provide a trigger and a test function (eg, for testing an HTTP Client, code that will invoke it must be provided). If"generated", then ContractCase will not require user provided triggers as it will generate them (eg, if the system under test is an HTTP server, ContractCase will generate client calls).- Specified by:
getTriggersin interfaceContractCaseCoreBehaviour
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-