public abstract class UpsertOperationTest extends OperationTest
OperationType.UPSERT
operations with ConnectorTester
.EXPECTED_RESULT_COUNT
connectorTester, testContext
Modifier | Constructor and Description |
---|---|
protected |
UpsertOperationTest(String objectTypeId,
InputStream input)
Creates an instance of an operation test.
|
protected |
UpsertOperationTest(String objectTypeId,
InputStream input,
OptionalTestInput optionalTestInput)
Creates an instance of an operation test.
|
protected |
UpsertOperationTest(String objectTypeId,
String input)
Creates an instance of an operation test.
|
Modifier and Type | Method and 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 tested
|
protected List<SimpleOperationResult> |
executeOperation(List<SimpleTrackedData> inputs)
This method should perform the actual operation being tested
|
afterOperation, afterOperation, prepareForOperation, testOperation
browseProfile, browseTypes, clearObjectDefinitionCache, getBrowseContext, getConnectorTestContext, getOperationContext, setupConnectorTester
protected UpsertOperationTest(String objectTypeId, InputStream input)
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.
objectTypeId
- object type id under testinput
- input for the operationprotected UpsertOperationTest(String objectTypeId, InputStream input, OptionalTestInput optionalTestInput)
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.
objectTypeId
- object type id under testinput
- input for the operationoptionalTestInput
- optional input for the testprotected UpsertOperationTest(String objectTypeId, String input)
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.
objectTypeId
- object type id under testinput
- input for the operationprotected List<SimpleOperationResult> executeOperation(List<SimpleTrackedData> inputs)
inputs
- the input to the operationList
of SimpleOperationResult
representing the result of the operationprotected final List<SimpleOperationResult> executeOperation()
OperationTest
executeOperation
in class OperationTest
List
of SimpleOperationResult
representing the result of the operationprotected final void addUserDefinedProperty(String key, String value)
key
- the property keyvalue
- the property valueprotected final void addDynamicProperty(String key, String value)
key
- the property keyvalue
- the property value