com.atlassian.crowd.integration.directory.internal
Class InternalDirectoryTest

java.lang.Object
  extended by com.atlassian.crowd.integration.directory.internal.InternalDirectoryTest

public class InternalDirectoryTest
extends java.lang.Object

InternalDirectory Tester.


Constructor Summary
InternalDirectoryTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testAddPrincipalMustHaveName()
           
 void testAddPrincipalWithInvalidCredential()
           
 void testAddUser()
          Test the happy path
 void testAuthentication()
           
 void testAuthenticationPrincipalRequiresPasswordChange()
           
 void testAuthenticationWithBadPassword()
           
 void testAuthenticationWithInActiveUser()
           
 void testAuthenticationWithMaxPasswordAttempts()
           
 void testAuthenticationWithUnknownPrincipal()
           
 void testCurrentPrincipalInvalidPasswordAttemptsWithCorrectAttribute()
           
 void testCurrentPrincipalInvalidPasswordAttemptsWithNullAttibuteList()
           
 void testCurrentUserInvalidPasswordAttemptsWithEmptyAttributes()
           
 void testCurrentUserInvalidPasswordAttemptsWithNullAttribute()
           
 void testRequiresExistingPasswordChangeFlagReturnsFalse()
           
 void testRequiresExistingPasswordChangeFlagReturnsTrue()
           
 void testUpdatePrincipalCredentialsWithOldPassword()
           
 void testUpdateUserCredentials()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalDirectoryTest

public InternalDirectoryTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()

testAddUser

public void testAddUser()
                 throws ObjectNotFoundException,
                        InvalidCredentialException,
                        InvalidUserException
Test the happy path

Throws:
ObjectNotFoundException
InvalidCredentialException
InvalidUserException

testAddPrincipalWithInvalidCredential

public void testAddPrincipalWithInvalidCredential()
                                           throws ObjectNotFoundException,
                                                  InvalidUserException
Throws:
ObjectNotFoundException
InvalidUserException

testAddPrincipalMustHaveName

public void testAddPrincipalMustHaveName()
                                  throws InvalidCredentialException,
                                         ObjectNotFoundException,
                                         InvalidUserException
Throws:
InvalidCredentialException
ObjectNotFoundException
InvalidUserException

testAuthentication

public void testAuthentication()
                        throws ObjectNotFoundException,
                               InvalidAuthenticationException,
                               InactiveAccountException
Throws:
ObjectNotFoundException
InvalidAuthenticationException
InactiveAccountException

testAuthenticationWithInActiveUser

public void testAuthenticationWithInActiveUser()
                                        throws ObjectNotFoundException,
                                               InvalidAuthenticationException
Throws:
ObjectNotFoundException
InvalidAuthenticationException

testAuthenticationPrincipalRequiresPasswordChange

public void testAuthenticationPrincipalRequiresPasswordChange()
                                                       throws ObjectNotFoundException,
                                                              InvalidAuthenticationException,
                                                              InactiveAccountException
Throws:
ObjectNotFoundException
InvalidAuthenticationException
InactiveAccountException

testAuthenticationWithBadPassword

public void testAuthenticationWithBadPassword()
                                       throws ObjectNotFoundException,
                                              InactiveAccountException
Throws:
ObjectNotFoundException
InactiveAccountException

testAuthenticationWithMaxPasswordAttempts

public void testAuthenticationWithMaxPasswordAttempts()
                                               throws ObjectNotFoundException,
                                                      InactiveAccountException
Throws:
ObjectNotFoundException
InactiveAccountException

testAuthenticationWithUnknownPrincipal

public void testAuthenticationWithUnknownPrincipal()
                                            throws ObjectNotFoundException,
                                                   InvalidAuthenticationException,
                                                   InactiveAccountException
Throws:
ObjectNotFoundException
InvalidAuthenticationException
InactiveAccountException

testUpdateUserCredentials

public void testUpdateUserCredentials()
                               throws ObjectNotFoundException,
                                      InvalidCredentialException
Throws:
ObjectNotFoundException
InvalidCredentialException

testUpdatePrincipalCredentialsWithOldPassword

public void testUpdatePrincipalCredentialsWithOldPassword()
                                                   throws ObjectNotFoundException
Throws:
ObjectNotFoundException

testRequiresExistingPasswordChangeFlagReturnsTrue

public void testRequiresExistingPasswordChangeFlagReturnsTrue()

testRequiresExistingPasswordChangeFlagReturnsFalse

public void testRequiresExistingPasswordChangeFlagReturnsFalse()

testCurrentUserInvalidPasswordAttemptsWithNullAttribute

public void testCurrentUserInvalidPasswordAttemptsWithNullAttribute()

testCurrentUserInvalidPasswordAttemptsWithEmptyAttributes

public void testCurrentUserInvalidPasswordAttemptsWithEmptyAttributes()

testCurrentPrincipalInvalidPasswordAttemptsWithNullAttibuteList

public void testCurrentPrincipalInvalidPasswordAttemptsWithNullAttibuteList()

testCurrentPrincipalInvalidPasswordAttemptsWithCorrectAttribute

public void testCurrentPrincipalInvalidPasswordAttemptsWithCorrectAttribute()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.