Class ContractCaseCoreBehaviour.Jsii$Proxy

    • 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.
    • Method Detail

      • getMockType

        public final String getMockType()
        Description copied from interface: ContractCaseCoreBehaviour
        The 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:
        getMockType in interface ContractCaseCoreBehaviour
      • getStateVariables

        public final String getStateVariables()
        Description copied from interface: ContractCaseCoreBehaviour
        Whether 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:
        getStateVariables in interface ContractCaseCoreBehaviour
      • getTriggers

        public final String getTriggers()
        Description copied from interface: ContractCaseCoreBehaviour
        Whether 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:
        getTriggers in interface ContractCaseCoreBehaviour
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object