org.identityconnectors.contract.test
Class SyncApiOpTests

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

public class SyncApiOpTests
extends ObjectClassRunner

Contract test of SyncApiOp


Field Summary
static String MODIFIED
           
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
SyncApiOpTests(ObjectClass oclass)
           
 
Method Summary
protected static boolean canSyncAfterOp(Class<? extends APIOperation> operation)
          Returns true if tests are configured to test connector's sync after specified operation.
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 String getTestName()
          Gets Test name
 void testLatestSyncToken()
          Tests that SyncApiOp#getLatestSyncToken() returns really the latest sync token which is available.
 void testRun()
          This method will be called configured number of times
 void testSyncWithoutAttrsToGet()
          Test Sync without attrsToGet.
 
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

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

SyncApiOpTests

public SyncApiOpTests(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

testSyncWithoutAttrsToGet

public void testSyncWithoutAttrsToGet()
Test Sync without attrsToGet.


testLatestSyncToken

public void testLatestSyncToken()
Tests that SyncApiOp#getLatestSyncToken() returns really the latest sync token which is available.


getTestName

public String getTestName()
Gets Test name

Specified by:
getTestName in class ObjectClassRunner
Returns:
Test Name

canSyncAfterOp

protected static boolean canSyncAfterOp(Class<? extends APIOperation> operation)
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.



Copyright © 2012. All Rights Reserved.