org.identityconnectors.contract.test
Class UpdateApiOpTests

java.lang.Object
  extended by org.identityconnectors.contract.test.ContractTestBase
      extended by org.identityconnectors.contract.test.ObjectClassRunner
          extended by org.identityconnectors.contract.test.UpdateApiOpTests

public class UpdateApiOpTests
extends ObjectClassRunner

Contract test of UpdateApiOp


Field Summary
protected static String MODIFIED
           
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
UpdateApiOpTests(ObjectClass objectClass)
           
 
Method Summary
 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.
 
Methods inherited from class org.identityconnectors.contract.test.ObjectClassRunner
data, dispose, getObjectClass, getObjectClassInfo, getOperationOptionsByOp, getSchema, getSupportedObjectClass, init, isObjectClassSupported, testContract
 
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
getConnectorFacade, getDataProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODIFIED

protected static final String MODIFIED
See Also:
Constant Field Values
Constructor Detail

UpdateApiOpTests

public UpdateApiOpTests(ObjectClass objectClass)
Method Detail

getAPIOperations

public Set<Class<? extends APIOperation>> getAPIOperations()
Ask the subclasses for the APIOperation. Method returns set of required API operations that are prerequisites for running certain contract test.

Specified by:
getAPIOperations in class ContractTestBase

testRun

public void testRun()
This method will be called configured number of times

Specified by:
testRun in class ObjectClassRunner

testUpdateToNull

public void testUpdateToNull()
The test verifies that connector doesn't throw NullPointerException or some other unexpected behavior when passed null as attribute value. Test passes null values only for non-required non-special updateable attributes.


testUpdateToSameAttributes

public void testUpdateToSameAttributes()
Tests create of two different objects and then update one to the same attributes as the second. Test that updated object did not update uid to the same value as the first object.


getTestName

public String getTestName()
Description copied from class: ObjectClassRunner
Gets Test name

Specified by:
getTestName in class ObjectClassRunner
Returns:
Test Name

testUpdateFailUnsupportedAttribute

public 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


mergeAttributeSets

protected static Set<Attribute> mergeAttributeSets(Set<Attribute> attrSet1,
                                                   Set<Attribute> attrSet2)
Returns new attribute set which contains all attributes from both sets. If attribute with the same name is present in both sets then its values are merged.


getSkippedAttributesForUpdateToNullValue

protected static Collection<String> getSkippedAttributesForUpdateToNullValue()


Copyright © 2011. All Rights Reserved.