public abstract class DeleteOperationTest extends OperationTest
OperationType.DELETE operations with
ConnectorTester.EXPECTED_RESULT_COUNTconnectorTester, testContext| Modifier | Constructor and Description |
|---|---|
protected |
DeleteOperationTest(String objectTypeId)
Creates an instance of an operation test.
|
protected |
DeleteOperationTest(String objectTypeId,
OptionalTestInput optionalTestInput)
Creates an instance of an operation test.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createTemporaryObjectForDeletion(InputStream input,
String xpathToId)
Helper method to create a new object and return its id.
|
protected List<SimpleOperationResult> |
executeOperation()
This method should perform the actual operation being tested
|
protected abstract String |
getObjectId()
Abstraction to allow ids to be created as part of each test.
|
afterOperation, afterOperation, prepareForOperation, testOperationbrowseProfile, browseTypes, clearObjectDefinitionCache, getBrowseContext, getConnectorTestContext, getOperationContext, setupConnectorTesterprotected DeleteOperationTest(String objectTypeId)
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 testprotected DeleteOperationTest(String objectTypeId, 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 testoptionalTestInput - optional input for the testprotected List<SimpleOperationResult> executeOperation()
OperationTestexecuteOperation in class OperationTestList of SimpleOperationResult representing the
result of the operationprotected final String createTemporaryObjectForDeletion(InputStream input, String xpathToId)
Currently only supports create operations that return an xml payload containing the id
input - input for the create operationxpathToId - xpath expression for the id in the response xml of the create
operationprotected abstract String getObjectId()
This must be overridden to return the id for the current object