org.apache.james.userrepository
Class MockUsersRepositoryTest
java.lang.Object
TestCase
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
usersRepository
protected org.apache.james.api.user.UsersRepository usersRepository
- Users repository
MockUsersRepositoryTest
public MockUsersRepositoryTest()
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.