org.identityconnectors.contract.test
Class SearchApiOpTests

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

public class SearchApiOpTests
extends ObjectClassRunner

Contract test of SearchApiOp


Field Summary
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
SearchApiOpTests(ObjectClass oclass)
           
 
Method Summary
protected static boolean canSearchCaseInsensitive()
           Returns true if tests are configured to enable case insensitive tests testCaseInsensitiveSearch().
protected static boolean compareExistingObjectsByUidOnly()
          Returns true if tests should compare already existing objects by uid only.
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 String getTestName()
          Gets Test name
 void testCaseInsensitiveSearch()
          Test case insensitive search for UID attribute.
 void testRun()
          This method will be called configured number of times
 void testSearchWithoutAttrsToGet()
          Test Search without specified OperationOptions attrsToGet which is the default for all other tests.
 
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

SearchApiOpTests

public SearchApiOpTests(ObjectClass oclass)
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

testSearchWithoutAttrsToGet

public void testSearchWithoutAttrsToGet()
Test Search without specified OperationOptions attrsToGet which is the default for all other tests. All the other tests contain explicit attrsToGet.


getTestName

public String getTestName()
Gets Test name

Specified by:
getTestName in class ObjectClassRunner
Returns:
Test Name

testCaseInsensitiveSearch

public void testCaseInsensitiveSearch()
Test case insensitive search for UID attribute. There is twice Search performed, once with changed case. The results should be identical.


canSearchCaseInsensitive

protected static boolean canSearchCaseInsensitive()

Returns true if tests are configured to enable case insensitive tests testCaseInsensitiveSearch().

Returns true if tests are configured to test connector's sync after specified operation. Some connectors implement sync but are not capable to sync all changes' types.


compareExistingObjectsByUidOnly

protected static boolean compareExistingObjectsByUidOnly()
Returns true if tests should compare already existing objects by uid only.



Copyright © 2011. All Rights Reserved.