Class OptionalTestInput
- java.lang.Object
-
- com.boomi.connector.testutil.junit.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 Summary
Constructors Constructor Description OptionalTestInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationStatusgetOperationStatus()Getter methodbooleanisEmptyPayloadsExpected()Getter methodOptionalTestInputwithEmptyPayloadsExpected(boolean emptyPayloadsExpected)Builder method to the empty payloads expected flag for the testOptionalTestInputwithOperationStatus(OperationStatus operationStatus)Builder method to set the expected operation status for the test
-
-
-
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
_operationStatusset 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
_emptyPayloadsExpectedset to the new value
-
getOperationStatus
public OperationStatus getOperationStatus()
Getter method- Returns:
- the _operationStatus
-
isEmptyPayloadsExpected
public boolean isEmptyPayloadsExpected()
Getter method- Returns:
- the _expectedEmptyPayloads
-
-