public class UpdateApiOpTests extends ObjectClassRunner
UpdateApiOp
Modifier and Type | Field and Description |
---|---|
protected static String |
MODIFIED |
static String |
TEST_NAME |
dataProvider
_connFacade, LOG_SEPARATOR, OBJECTCLASS_DATAPROVIDER, TESTSUITE
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.
|
data, dispose, getObjectClassInfo, getOperationOptionsByOp, getSchema, isObjectClassSupported, testContract
BeforeClass, getConnectorFacade, getDataProvider
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
public void testUpdateToNull(ObjectClass objectClass)
public void testUpdateToSameAttributes(ObjectClass objectClass)
public String getTestName()
ObjectClassRunner
getTestName
in class ObjectClassRunner
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 © 2019. All rights reserved.