public abstract class GetOperationTest extends OperationTest
OperationType.GET
operations with ConnectorTester
.EXPECTED_RESULT_COUNT
connectorTester, testContext
Constructor and Description |
---|
GetOperationTest(String objectTypeId,
String validObjectId)
Creates an instance of an operation test.
|
GetOperationTest(String objectTypeId,
String validObjectId,
String invalidObjectId)
Creates an instance of an operation test.
|
Modifier and Type | Method and Description |
---|---|
protected List<SimpleOperationResult> |
executeOperation()
This method should perform the actual operation being tested
|
void |
testGetInvalidId()
Test method to verify the result of performing a get operation for an object that does not exist
|
afterOperation, afterOperation, prepareForOperation, testOperation
browseProfile, browseTypes, clearObjectDefinitionCache, getBrowseContext, getConnectorTestContext, getOperationContext, setupConnectorTester
public GetOperationTest(String objectTypeId, String validObjectId)
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 testvalidObjectId
- id of a valid objectpublic GetOperationTest(String objectTypeId, String validObjectId, String invalidObjectId)
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 testvalidObjectId
- id of a valid objectinvalidObjectId
- id of an object that does not existpublic void testGetInvalidId()
protected List<SimpleOperationResult> executeOperation()
OperationTest
executeOperation
in class OperationTest
List
of SimpleOperationResult
representing the result of the operation