org.acegisecurity.providers.ldap.authenticator
Class BindAuthenticatorTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.ldap.AbstractLdapServerTestCase
              extended by org.acegisecurity.providers.ldap.authenticator.BindAuthenticatorTests
All Implemented Interfaces:
junit.framework.Test

public class BindAuthenticatorTests
extends AbstractLdapServerTestCase

Tests for BindAuthenticator.

Version:
$Id: BindAuthenticatorTests.java 1496 2006-05-23 13:38:33Z benalex $
Author:
Luke Taylor

Field Summary
 
Fields inherited from class org.acegisecurity.ldap.AbstractLdapServerTestCase
MANAGER_PASSWORD, MANAGER_USER
 
Constructor Summary
BindAuthenticatorTests()
           
 
Method Summary
 void onSetUp()
           
 void testAuthenticationWithCorrectPasswordSucceeds()
           
 void testAuthenticationWithInvalidUserNameFails()
           
 void testAuthenticationWithUserSearch()
           
 void testAuthenticationWithWrongPasswordFails()
           
 void testRoleRetrieval()
           
 void testUserDnPatternReturnsCorrectDn()
           
 
Methods inherited from class org.acegisecurity.ldap.AbstractLdapServerTestCase
getInitialCtxFactory, setUp
 
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

BindAuthenticatorTests

public BindAuthenticatorTests()
Method Detail

onSetUp

public void onSetUp()
Overrides:
onSetUp in class AbstractLdapServerTestCase

testAuthenticationWithCorrectPasswordSucceeds

public void testAuthenticationWithCorrectPasswordSucceeds()

testAuthenticationWithInvalidUserNameFails

public void testAuthenticationWithInvalidUserNameFails()

testAuthenticationWithUserSearch

public void testAuthenticationWithUserSearch()
                                      throws Exception
Throws:
Exception

testAuthenticationWithWrongPasswordFails

public void testAuthenticationWithWrongPasswordFails()

testRoleRetrieval

public void testRoleRetrieval()

testUserDnPatternReturnsCorrectDn

public void testUserDnPatternReturnsCorrectDn()


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