Class AuthenticationApiOpTests
- java.lang.Object
-
- org.identityconnectors.contract.test.ContractTestBase
-
- org.identityconnectors.contract.test.ObjectClassRunner
-
- org.identityconnectors.contract.test.AuthenticationApiOpTests
-
public class AuthenticationApiOpTests extends ObjectClassRunner
Contract test ofAuthenticationApiOp
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
TEST_NAME
protected static String
USERNAME_PROP
-
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade, LOG_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description AuthenticationApiOpTests()
-
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
testOpEnable(ObjectClass objectClass)
Tests that disabled user cannot authenticate.void
testOpPasswordExpirationDate(ObjectClass objectClass)
Tests that PasswordExpiredException is thrown in case PasswordExpirationDate is set to today.void
testOpPasswordExpired(ObjectClass objectClass)
Tests that PasswordExpiredException is thrown in case PasswordExpired is updated to true.void
testPasswordBeforePasswordExpired(ObjectClass objectClass)
Tests that connector respects order of PASSWORD and PASSWORD_EXPIRED attributes during update.void
testRun(ObjectClass objectClass)
This method will be called configured number of times-
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
protected static final String TEST_NAME
- See Also:
- Constant Field Values
-
USERNAME_PROP
protected static final String USERNAME_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAPIOperations
public Set<Class<? extends APIOperation>> getAPIOperations()
Description copied from class:ContractTestBase
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
public void testRun(ObjectClass objectClass)
This method will be called configured number of times- Specified by:
testRun
in classObjectClassRunner
-
testOpEnable
@ParameterizedTest @MethodSource("objectClasses") public void testOpEnable(ObjectClass objectClass)
Tests that disabled user cannot authenticate. RuntimeException should be thrown.
-
testOpPasswordExpirationDate
@ParameterizedTest @MethodSource("objectClasses") public void testOpPasswordExpirationDate(ObjectClass objectClass)
Tests that PasswordExpiredException is thrown in case PasswordExpirationDate is set to today.
-
testOpPasswordExpired
@ParameterizedTest @MethodSource("objectClasses") public void testOpPasswordExpired(ObjectClass objectClass)
Tests that PasswordExpiredException is thrown in case PasswordExpired is updated to true.
-
testPasswordBeforePasswordExpired
@ParameterizedTest @MethodSource("objectClasses") public void testPasswordBeforePasswordExpired(ObjectClass objectClass)
Tests that connector respects order of PASSWORD and PASSWORD_EXPIRED attributes during update. PASSWORD should be performed before PASSWORD_EXPIRED.
-
getTestName
public String getTestName()
Gets Test name- Specified by:
getTestName
in classObjectClassRunner
- Returns:
- Test Name
-
-