org.apache.james.userrepository
Class MockUsersRepositoryTest

java.lang.Object
  extended by TestCase
      extended by org.apache.james.userrepository.MockUsersRepositoryTest
Direct Known Subclasses:
DefaultUsersJdbcRepositoryTest, JamesUsersJdbcRepositoryTest, JcrUserRepositoryTest, ListUsersJdbcRepositoryTest, UsersFileRepositoryTest

public class MockUsersRepositoryTest
extends TestCase

Test basic behaviours of UsersFileRepository


Field Summary
protected  org.apache.james.api.user.UsersRepository usersRepository
          Users repository
 
Constructor Summary
MockUsersRepositoryTest()
           
 
Method Summary
protected  void disposeUsersRepository()
          Dispose the repository
protected  boolean getAllowMultipleUsersWithDifferentCases()
           
protected  boolean getCheckCase()
           
protected  boolean getPasswordsEnabled()
           
protected  org.apache.james.api.user.UsersRepository getUsersRepository()
          Create the repository to be tested.
protected  void setUp()
           
protected  void tearDown()
           
 void testAddUserOnce()
           
 void testCaseInsensitivesMethods()
           
 void testUserAddedIsFound()
           
 void testUserAddRemoveCycle()
           
 void testUserListing()
           
 void testUserPassword()
           
 void testUsersRepositoryEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usersRepository

protected org.apache.james.api.user.UsersRepository usersRepository
Users repository

Constructor Detail

MockUsersRepositoryTest

public MockUsersRepositoryTest()
Method Detail

getUsersRepository

protected org.apache.james.api.user.UsersRepository getUsersRepository()
                                                                throws java.lang.Exception
Create the repository to be tested.

Returns:
the user repository
Throws:
java.lang.Exception

testUsersRepositoryEmpty

public void testUsersRepositoryEmpty()

testAddUserOnce

public void testAddUserOnce()

testUserAddedIsFound

public void testUserAddedIsFound()

testUserListing

public void testUserListing()

testUserPassword

public void testUserPassword()

getPasswordsEnabled

protected boolean getPasswordsEnabled()

testUserAddRemoveCycle

public void testUserAddRemoveCycle()

testCaseInsensitivesMethods

public void testCaseInsensitivesMethods()

getCheckCase

protected boolean getCheckCase()
Returns:

getAllowMultipleUsersWithDifferentCases

protected boolean getAllowMultipleUsersWithDifferentCases()

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
junit.framework.TestCase#setUp()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception
See Also:
junit.framework.TestCase#tearDown()

disposeUsersRepository

protected void disposeUsersRepository()
Dispose the repository



Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.