Class CreateOperationTest
- java.lang.Object
-
- com.boomi.connector.testutil.junit.ConnectorTest
-
- com.boomi.connector.testutil.junit.OperationTest
-
- com.boomi.connector.testutil.junit.CreateOperationTest
-
public abstract class CreateOperationTest extends OperationTest
Base test class for testingOperationType.CREATEoperations 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 protectedCreateOperationTest(String objectTypeId, InputStream input)Creates an instance of an operation test.protectedCreateOperationTest(String objectTypeId, InputStream input, OptionalTestInput optionalTestInput)Creates an instance of an operation test.protectedCreateOperationTest(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 voidaddDynamicOperationProperty(String key, Object value)Helper method to add dynamic operation properties to a test.protected voidaddDynamicProperty(String key, String value)Helper method to add dynamic properties to a test.protected voidaddUserDefinedProperty(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
-
CreateOperationTest
protected CreateOperationTest(String objectTypeId, InputStream input)
Creates an instance of an operation test.Intended to be used as part of a
Parameterizedtest 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
-
CreateOperationTest
protected CreateOperationTest(String objectTypeId, InputStream input, OptionalTestInput optionalTestInput)
Creates an instance of an operation test.Intended to be used as part of a
Parameterizedtest 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 (not the operation)
-
CreateOperationTest
protected CreateOperationTest(String objectTypeId, String input)
Creates an instance of an operation test.Intended to be used as part of a
Parameterizedtest 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:
ListofSimpleOperationResultrepresenting the result of the operation
-
executeOperation
protected final List<SimpleOperationResult> executeOperation()
Description copied from class:OperationTestThis method should perform the actual operation being tested- Specified by:
executeOperationin classOperationTest- Returns:
ListofSimpleOperationResultrepresenting 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
-
-