Class SyncApiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.ObjectClassRunner
-
- org.identityconnectors.contract.test.SyncApiOpTests
-
public class SyncApiOpTests extends ObjectClassRunner
Contract test ofSyncApiOp
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODIFIED
static String
TEST_NAME
-
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description SyncApiOpTests()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 theAPIOperation
.String
getTestName()
Gets Test namevoid
testLatestSyncToken(ObjectClass objectClass)
Tests thatSyncApiOp.getLatestSyncToken(ObjectClass)
returns really the latest sync token which is available.protected void
testRun(ObjectClass objectClass)
This method will be called configured number of timesvoid
testSyncWithoutAttrsToGet(ObjectClass objectClass)
Test Sync without attrsToGet.-
Methods inherited from class org.identityconnectors.contract.test.ObjectClassRunner
getObjectClassInfo, getOperationOptionsByOp, getSchema, isObjectClassSupported, objectClasses, testContract
-
Methods inherited from class org.identityconnectors.contract.test.ContractTestBase
dispose, getConnectorFacade, getDataProvider, init
-
-
-
-
Field Detail
-
TEST_NAME
public static final String TEST_NAME
- See Also:
- Constant Field Values
-
MODIFIED
public static final String MODIFIED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAPIOperations
public Set<Class<? extends APIOperation>> getAPIOperations()
Ask the subclasses for theAPIOperation
. Method returns set of required API operations that are prerequisites for running certain contract test.- Specified by:
getAPIOperations
in classContractTestBase
-
testRun
protected void testRun(ObjectClass objectClass)
This method will be called configured number of times- Specified by:
testRun
in classObjectClassRunner
-
testSyncWithoutAttrsToGet
@ParameterizedTest @MethodSource("objectClasses") public void testSyncWithoutAttrsToGet(ObjectClass objectClass)
Test Sync without attrsToGet.
-
testLatestSyncToken
@ParameterizedTest @MethodSource("objectClasses") public void testLatestSyncToken(ObjectClass objectClass)
Tests thatSyncApiOp.getLatestSyncToken(ObjectClass)
returns really the latest sync token which is available.
-
getTestName
public String getTestName()
Gets Test name- Specified by:
getTestName
in classObjectClassRunner
- 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.
-
-