public class UpdateApiOpTests extends ObjectClassRunner
UpdateApiOp
.Modifier and Type | Field and Description |
---|---|
protected static String |
MODIFIED |
static String |
TEST_NAME |
_connFacade, LOG_SEPARATOR
Constructor and Description |
---|
UpdateApiOpTests() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends APIOperation>> |
getAPIOperations()
Ask the subclasses for the
APIOperation . |
protected static Collection<String> |
getSkippedAttributesForUpdateToNullValue() |
String |
getTestName()
Gets Test name
|
protected static Set<Attribute> |
mergeAttributeSets(Set<Attribute> attrSet1,
Set<Attribute> attrSet2)
Returns new attribute set which contains all attributes from both sets.
|
protected void |
testRun(ObjectClass objectClass)
This method will be called configured number of times
|
void |
testUpdateFailUnsupportedAttribute(ObjectClass objectClass)
Tests update method with invalid Attribute, RuntimeException is expected
connector developers can set the value of unsupported attribute
using test property:
testsuite.Create.unsupportedAttributeName |
void |
testUpdateToNull(ObjectClass objectClass)
The test verifies that connector doesn't throw NullPointerException or some other unexpected behavior when passed
null as
attribute value.
|
void |
testUpdateToSameAttributes(ObjectClass objectClass)
Tests create of two different objects and then update one to the same
attributes as the second.
|
getObjectClassInfo, getOperationOptionsByOp, getSchema, isObjectClassSupported, objectClasses, testContract
dispose, getConnectorFacade, getDataProvider, init
protected static final String MODIFIED
public static final String TEST_NAME
public Set<Class<? extends APIOperation>> getAPIOperations()
APIOperation
.
Method returns set of required API operations that are prerequisites for
running certain contract test.getAPIOperations
in class ContractTestBase
protected void testRun(ObjectClass objectClass)
testRun
in class ObjectClassRunner
@ParameterizedTest @MethodSource(value="objectClasses") public void testUpdateToNull(ObjectClass objectClass)
@ParameterizedTest @MethodSource(value="objectClasses") public void testUpdateToSameAttributes(ObjectClass objectClass)
public String getTestName()
ObjectClassRunner
getTestName
in class ObjectClassRunner
@ParameterizedTest @MethodSource(value="objectClasses") public void testUpdateFailUnsupportedAttribute(ObjectClass objectClass)
testsuite.Create.unsupportedAttributeName
protected static Set<Attribute> mergeAttributeSets(Set<Attribute> attrSet1, Set<Attribute> attrSet2)
protected static Collection<String> getSkippedAttributesForUpdateToNullValue()
Copyright © 2022. All rights reserved.