Class GetOperationTest
- java.lang.Object
-
- com.boomi.connector.testutil.junit.ConnectorTest
-
- com.boomi.connector.testutil.junit.OperationTest
-
- com.boomi.connector.testutil.junit.GetOperationTest
-
public abstract class GetOperationTest extends OperationTest
Base test class for testingOperationType.GET
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 Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<SimpleOperationResult>
executeOperation()
This method should perform the actual operation being testedvoid
testGetInvalidId()
Test method to verify the result of performing a get operation for an object that does not exist-
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
-
GetOperationTest
public GetOperationTest(String objectTypeId, String validObjectId)
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 testvalidObjectId
- id of a valid object
-
GetOperationTest
public GetOperationTest(String objectTypeId, String validObjectId, String invalidObjectId)
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 testvalidObjectId
- id of a valid objectinvalidObjectId
- id of an object that does not exist
-
-
Method Detail
-
testGetInvalidId
public void testGetInvalidId()
Test method to verify the result of performing a get operation for an object that does not exist
-
executeOperation
protected 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
-
-