Class ExecuteOperationTest
- java.lang.Object
-
- com.boomi.connector.testutil.junit.ConnectorTest
-
- com.boomi.connector.testutil.junit.OperationTest
-
- com.boomi.connector.testutil.junit.ExecuteOperationTest
-
public abstract class ExecuteOperationTest extends OperationTest
Base test class for testingOperationType.EXECUTE
operations withConnectorTester
.
-
-
Field Summary
-
Fields inherited from class com.boomi.connector.testutil.junit.OperationTest
EXPECTED_RESULT_COUNT
-
Fields inherited from class com.boomi.connector.testutil.junit.ConnectorTest
connectorTester, testContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExecuteOperationTest(String objectTypeId, InputStream input)
Creates an instance of an operation test.protected
ExecuteOperationTest(String objectTypeId, InputStream input, OptionalTestInput optionalTestInput)
Creates an instance of an operation test.protected
ExecuteOperationTest(String objectTypeId, String input)
Creates an instance of an operation test.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDynamicOperationProperty(String key, Object value)
Helper method to add dynamic operation properties to a test.protected void
addDynamicProperty(String key, String value)
Helper method to add dynamic properties to a test.protected void
addUserDefinedProperty(String key, String value)
Helper method to add user defined properties to a test.protected List<SimpleOperationResult>
executeOperation()
This method should perform the actual operation being testedprotected List<SimpleOperationResult>
executeOperation(List<SimpleTrackedData> inputs)
This method should perform the actual operation being tested-
Methods inherited from class com.boomi.connector.testutil.junit.OperationTest
afterOperation, afterOperation, prepareForOperation, testOperation
-
Methods inherited from class com.boomi.connector.testutil.junit.ConnectorTest
browseProfile, browseTypes, clearObjectDefinitionCache, getBrowseContext, getConnectorTestContext, getOperationContext, setupConnectorTester
-
-
-
-
Constructor Detail
-
ExecuteOperationTest
protected ExecuteOperationTest(String objectTypeId, InputStream input)
Creates an instance of an operation test.Intended to be used as part of a
Parameterized
test but can be run as a single test instance by invoking this constructor from the no argument constructor of the implementing class.- Parameters:
objectTypeId
- object type id under testinput
- input for the operation
-
ExecuteOperationTest
protected ExecuteOperationTest(String objectTypeId, InputStream input, OptionalTestInput optionalTestInput)
Creates an instance of an operation test.Intended to be used as part of a
Parameterized
test but can be run as a single test instance by invoking this constructor from the no argument constructor of the implementing class.- Parameters:
objectTypeId
- object type id under testinput
- input for the operationoptionalTestInput
- optional input for the test
-
ExecuteOperationTest
protected ExecuteOperationTest(String objectTypeId, String input)
Creates an instance of an operation test.Intended to be used as part of a
Parameterized
test but can be run as a single test instance by invoking this constructor from the no argument constructor of the implementing class.- Parameters:
objectTypeId
- object type id under testinput
- input for the operation
-
-
Method Detail
-
executeOperation
protected List<SimpleOperationResult> executeOperation(List<SimpleTrackedData> inputs)
This method should perform the actual operation being tested- Parameters:
inputs
- the input to the operation- Returns:
List
ofSimpleOperationResult
representing the result of the operation
-
executeOperation
protected final List<SimpleOperationResult> executeOperation()
Description copied from class:OperationTest
This method should perform the actual operation being tested- Specified by:
executeOperation
in classOperationTest
- Returns:
List
ofSimpleOperationResult
representing the result of the operation
-
addUserDefinedProperty
protected final void addUserDefinedProperty(String key, String value)
Helper method to add user defined properties to a test. Properties will be reset prior to each test.- Parameters:
key
- the property keyvalue
- the property value
-
addDynamicProperty
protected final void addDynamicProperty(String key, String value)
Helper method to add dynamic properties to a test. Properties will be reset prior to each test.- Parameters:
key
- the property keyvalue
- the property value
-
-