org.identityconnectors.contract.test
Class AttributeTests

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

public class AttributeTests
extends ObjectClassRunner

Test that attributes satisfy contract.

Tests check:

Author:
David Adam

Field Summary
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
AttributeTests(ObjectClass oclass)
           
 
Method Summary
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 String getTestName()
          Gets Test name
 void testNonReadable()
           Non readable attributes should _not_ be returned by default API operations for acquiring attributes: GetApiOp
 void testNonUpdateable()
          Update of non-updateable attribute is not acceptable.
 void testRequirableIsCreatable()
          Required attributes must be creatable.
 void testReturnedByDefault()
           Not returned by default attributes should not be returned, unless specified in attributesToGet (OperationOptions) API operations for acquiring attributes: GetApiOp SearchApiOp SyncApiOp
 void testRun()
          This method will be called configured number of times
 
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
 

Constructor Detail

AttributeTests

public AttributeTests(ObjectClass oclass)
Method Detail

getAPIOperations

public Set<Class<? extends APIOperation>> getAPIOperations()
Description copied from class: ContractTestBase
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

getTestName

public String getTestName()
Gets Test name

Specified by:
getTestName in class ObjectClassRunner
Returns:
Test Name

testNonReadable

public void testNonReadable()

Non readable attributes should _not_ be returned by default

API operations for acquiring attributes: GetApiOp


testReturnedByDefault

public void testReturnedByDefault()

Not returned by default attributes should not be returned, unless specified in attributesToGet (OperationOptions)

API operations for acquiring attributes:


testNonUpdateable

public void testNonUpdateable()
Update of non-updateable attribute is not acceptable. Connector should throw a RuntimeException.

API operations for acquiring attributes: GetApiOp


testRequirableIsCreatable

public void testRequirableIsCreatable()
Required attributes must be creatable. It is a fialure if a required attribute is not creatable.



Copyright © 2011. All Rights Reserved.