org.acegisecurity.providers.dao
Class DaoAuthenticationProviderTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.providers.dao.DaoAuthenticationProviderTests
All Implemented Interfaces:
junit.framework.Test

public class DaoAuthenticationProviderTests
extends junit.framework.TestCase

Tests DaoAuthenticationProvider.

Version:
$Id: DaoAuthenticationProviderTests.java 1857 2007-05-24 00:47:12Z benalex $
Author:
Ben Alex

Constructor Summary
DaoAuthenticationProviderTests()
           
 
Method Summary
static void main(String[] args)
           
 void setUp()
           
 void testAuthenticateFailsForIncorrectPasswordCase()
           
 void testAuthenticateFailsIfAccountExpired()
           
 void testAuthenticateFailsIfAccountLocked()
           
 void testAuthenticateFailsIfCredentialsExpired()
           
 void testAuthenticateFailsIfUserDisabled()
           
 void testAuthenticateFailsWhenAuthenticationDaoHasBackendFailure()
           
 void testAuthenticateFailsWithEmptyUsername()
           
 void testAuthenticateFailsWithInvalidPassword()
           
 void testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionFalse()
           
 void testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionsWithDefaultOfTrue()
           
 void testAuthenticateFailsWithMixedCaseUsernameIfDefaultChanged()
           
 void testAuthenticates()
           
 void testAuthenticatesASecondTime()
           
 void testAuthenticatesWhenASaltIsUsed()
           
 void testAuthenticatesWithForcePrincipalAsString()
           
 void testDetectsNullBeingReturnedFromAuthenticationDao()
           
 void testGettersSetters()
           
 void testGoesBackToAuthenticationDaoToObtainLatestPasswordIfCachedPasswordSeemsIncorrect()
           
 void testReceivedBadCredentialsWhenCredentialsNotProvided()
           
 void testStartupFailsIfNoAuthenticationDao()
           
 void testStartupFailsIfNoUserCacheSet()
           
 void testStartupSuccess()
           
 void testSupports()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DaoAuthenticationProviderTests

public DaoAuthenticationProviderTests()
Method Detail

main

public static void main(String[] args)

setUp

public final void setUp()
                 throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testAuthenticateFailsForIncorrectPasswordCase

public void testAuthenticateFailsForIncorrectPasswordCase()

testReceivedBadCredentialsWhenCredentialsNotProvided

public void testReceivedBadCredentialsWhenCredentialsNotProvided()

testAuthenticateFailsIfAccountExpired

public void testAuthenticateFailsIfAccountExpired()

testAuthenticateFailsIfAccountLocked

public void testAuthenticateFailsIfAccountLocked()

testAuthenticateFailsIfCredentialsExpired

public void testAuthenticateFailsIfCredentialsExpired()

testAuthenticateFailsIfUserDisabled

public void testAuthenticateFailsIfUserDisabled()

testAuthenticateFailsWhenAuthenticationDaoHasBackendFailure

public void testAuthenticateFailsWhenAuthenticationDaoHasBackendFailure()

testAuthenticateFailsWithEmptyUsername

public void testAuthenticateFailsWithEmptyUsername()

testAuthenticateFailsWithInvalidPassword

public void testAuthenticateFailsWithInvalidPassword()

testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionFalse

public void testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionFalse()

testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionsWithDefaultOfTrue

public void testAuthenticateFailsWithInvalidUsernameAndHideUserNotFoundExceptionsWithDefaultOfTrue()

testAuthenticateFailsWithMixedCaseUsernameIfDefaultChanged

public void testAuthenticateFailsWithMixedCaseUsernameIfDefaultChanged()

testAuthenticates

public void testAuthenticates()

testAuthenticatesASecondTime

public void testAuthenticatesASecondTime()

testAuthenticatesWhenASaltIsUsed

public void testAuthenticatesWhenASaltIsUsed()

testAuthenticatesWithForcePrincipalAsString

public void testAuthenticatesWithForcePrincipalAsString()

testDetectsNullBeingReturnedFromAuthenticationDao

public void testDetectsNullBeingReturnedFromAuthenticationDao()

testGettersSetters

public void testGettersSetters()

testGoesBackToAuthenticationDaoToObtainLatestPasswordIfCachedPasswordSeemsIncorrect

public void testGoesBackToAuthenticationDaoToObtainLatestPasswordIfCachedPasswordSeemsIncorrect()

testStartupFailsIfNoAuthenticationDao

public void testStartupFailsIfNoAuthenticationDao()
                                           throws Exception
Throws:
Exception

testStartupFailsIfNoUserCacheSet

public void testStartupFailsIfNoUserCacheSet()
                                      throws Exception
Throws:
Exception

testStartupSuccess

public void testStartupSuccess()
                        throws Exception
Throws:
Exception

testSupports

public void testSupports()


Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.