Class MultiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.ObjectClassRunner
-
- org.identityconnectors.contract.test.MultiOpTests
-
public class MultiOpTests extends ObjectClassRunner
Tests which use many APIOperations to do the test scenario- Author:
- Tomas Knappek, Zdenek Louzensky
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEST_NAME
-
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description MultiOpTests()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Class<? extends APIOperation>>
getAPIOperations()
Ask the subclasses for theAPIOperation
.String
getTestName()
Gets Test namevoid
testDisableDateOpAttribute(ObjectClass objectClass)
Tests DISABLE_DATE attribute contractvoid
testEnableDateOpAttribute(ObjectClass objectClass)
Tests ENABLE_DATE attribute contractvoid
testEnableOpAttribute(ObjectClass objectClass)
Tests ENABLE attribute contractvoid
testGroupsPredAttribute()
Tests GROUPS attribute contractvoid
testLockOutOpAttribute(ObjectClass objectClass)
Tests LOCK_OUT attribute contractvoid
testPasswordChangeIntervalPredAttribute(ObjectClass objectClass)
Tests PASSWORD_CHANGE_INTERVAL attribute contractvoid
testPasswordExpirationDateOpAttribute(ObjectClass objectClass)
Tests PASSWORD_EXPIRATION_DATE attribute contractvoid
testPasswordExpiredOpAttribute(ObjectClass objectClass)
Tests PASSWORD_EXPIRED attribute contractprotected void
testRun(ObjectClass objectClass)
Scenario test - test positive cases.-
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
-
-
Method Detail
-
testRun
protected void testRun(ObjectClass objectClass)
Scenario test - test positive cases. This method will be called configured number of times Test assumes that Schema,Create,Search and Delete are supported operations.- Specified by:
testRun
in classObjectClassRunner
-
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
-
getTestName
public String getTestName()
Gets Test name- Specified by:
getTestName
in classObjectClassRunner
- Returns:
- Test Name
-
testEnableOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testEnableOpAttribute(ObjectClass objectClass)
Tests ENABLE attribute contract
-
testEnableDateOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testEnableDateOpAttribute(ObjectClass objectClass)
Tests ENABLE_DATE attribute contract
-
testDisableDateOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testDisableDateOpAttribute(ObjectClass objectClass)
Tests DISABLE_DATE attribute contract
-
testLockOutOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testLockOutOpAttribute(ObjectClass objectClass)
Tests LOCK_OUT attribute contract
-
testPasswordExpirationDateOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testPasswordExpirationDateOpAttribute(ObjectClass objectClass)
Tests PASSWORD_EXPIRATION_DATE attribute contract
-
testPasswordExpiredOpAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testPasswordExpiredOpAttribute(ObjectClass objectClass)
Tests PASSWORD_EXPIRED attribute contract
-
testPasswordChangeIntervalPredAttribute
@ParameterizedTest @MethodSource("objectClasses") public void testPasswordChangeIntervalPredAttribute(ObjectClass objectClass)
Tests PASSWORD_CHANGE_INTERVAL attribute contract
-
testGroupsPredAttribute
@Test public void testGroupsPredAttribute()
Tests GROUPS attribute contract
-
-