Class OptionalTestInput


  • public class OptionalTestInput
    extends Object
    This class represents optional input for a test (not input to the operation). This allows the options to vary per test intead of per test class with the context.
    • Constructor Detail

      • OptionalTestInput

        public OptionalTestInput()
    • Method Detail

      • withOperationStatus

        public OptionalTestInput withOperationStatus​(OperationStatus operationStatus)
        Builder method to set the expected operation status for the test
        Parameters:
        operationStatus - the operation status expected for the current test
        Returns:
        the current instance with the _operationStatus set to the new value.
      • withEmptyPayloadsExpected

        public OptionalTestInput withEmptyPayloadsExpected​(boolean emptyPayloadsExpected)
        Builder method to the empty payloads expected flag for the test
        Parameters:
        emptyPayloadsExpected - boolean indicating if empty payloads are expected for the current test
        Returns:
        the current instance with the _emptyPayloadsExpected set to the new value
      • getOperationStatus

        public OperationStatus getOperationStatus()
        Getter method
        Returns:
        the _operationStatus
      • isEmptyPayloadsExpected

        public boolean isEmptyPayloadsExpected()
        Getter method
        Returns:
        the _expectedEmptyPayloads