public class UpdateApiOpTests extends ObjectClassRunner
UpdateApiOp
Modifier and Type | Field and Description |
---|---|
protected static String |
MODIFIED |
_connFacade
Constructor and Description |
---|
UpdateApiOpTests(ObjectClass objectClass) |
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.
|
void |
testRun()
This method will be called configured number of times
|
void |
testUpdateFailUnsupportedAttribute()
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()
The test verifies that connector doesn't throw NullPointerException or some other unexpected behavior when passed null as
attribute value.
|
void |
testUpdateToSameAttributes()
Tests create of two different objects and then update one to the same
attributes as the second.
|
data, dispose, getObjectClass, getObjectClassInfo, getOperationOptionsByOp, getSchema, getSupportedObjectClass, init, isObjectClassSupported, testContract
getConnectorFacade, getDataProvider
protected static final String MODIFIED
public UpdateApiOpTests(ObjectClass objectClass)
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
public void testRun()
testRun
in class ObjectClassRunner
public void testUpdateToNull()
public void testUpdateToSameAttributes()
public String getTestName()
ObjectClassRunner
getTestName
in class ObjectClassRunner
public void testUpdateFailUnsupportedAttribute()
testsuite.Create.unsupportedAttributeName
protected static Set<Attribute> mergeAttributeSets(Set<Attribute> attrSet1, Set<Attribute> attrSet2)
protected static Collection<String> getSkippedAttributesForUpdateToNullValue()
Copyright © 2013. All Rights Reserved.