org.identityconnectors.contract.test
Class AuthenticationApiOpTests

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

public class AuthenticationApiOpTests
extends ObjectClassRunner

Contract test of AuthenticationApiOp


Field Summary
 
Fields inherited from class org.identityconnectors.contract.test.ContractTestBase
_connFacade
 
Constructor Summary
AuthenticationApiOpTests(ObjectClass oclass)
           
 
Method Summary
 Set<Class<? extends APIOperation>> getAPIOperations()
          Ask the subclasses for the APIOperation.
 String getTestName()
          Gets Test name
 void testOpEnable()
          Tests that disabled user cannot authenticate.
 void testOpPasswordExpirationDate()
          Tests that PasswordExpiredException is thrown in case PasswordExpirationDate is set to today.
 void testOpPasswordExpired()
          Tests that PasswordExpiredException is thrown in case PasswordExpired is updated to true.
 void testPasswordBeforePasswordExpired()
          Tests that connector respects order of PASSWORD and PASSWORD_EXPIRED attributes during update.
 void testRun()
          This method will be called configured number of times
 
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

AuthenticationApiOpTests

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

testOpEnable

public void testOpEnable()
Tests that disabled user cannot authenticate. RuntimeException should be thrown.


testOpPasswordExpirationDate

public void testOpPasswordExpirationDate()
Tests that PasswordExpiredException is thrown in case PasswordExpirationDate is set to today.


testOpPasswordExpired

public void testOpPasswordExpired()
Tests that PasswordExpiredException is thrown in case PasswordExpired is updated to true.


testPasswordBeforePasswordExpired

public void testPasswordBeforePasswordExpired()
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 class ObjectClassRunner
Returns:
Test Name


Copyright © 2011. All Rights Reserved.