org.apache.james.services
Class MailServerTestAllImplementations

java.lang.Object
  extended by TestCase
      extended by org.apache.james.services.MailServerTestAllImplementations
Direct Known Subclasses:
JamesTest

public abstract class MailServerTestAllImplementations
extends TestCase

tests all implementations for interface MailServer


Field Summary
protected static java.lang.String EXISTING_USER_NAME
           
 
Constructor Summary
MailServerTestAllImplementations()
           
 
Method Summary
abstract  boolean allowsPasswordlessUser()
           
abstract  boolean canTestUserExists()
          while addUser() is part of MailServer interface, a user cannot be tested for afterwards at the same time, James allows to do exactly this via isLocalUser(), other implementations might vary.
abstract  org.apache.james.services.MailServer createMailServer()
           
abstract  boolean isUserExisting(org.apache.james.services.MailServer mailServerImpl, java.lang.String username)
           
 void testAddUser()
           
 void testGetExisitingUserInbox()
           
 void testGetNonexistingUserInbox()
           
 void testId()
           
 void testIdIncrement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXISTING_USER_NAME

protected static final java.lang.String EXISTING_USER_NAME
See Also:
Constant Field Values
Constructor Detail

MailServerTestAllImplementations

public MailServerTestAllImplementations()
Method Detail

createMailServer

public abstract org.apache.james.services.MailServer createMailServer()
                                                               throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException

allowsPasswordlessUser

public abstract boolean allowsPasswordlessUser()

canTestUserExists

public abstract boolean canTestUserExists()
while addUser() is part of MailServer interface, a user cannot be tested for afterwards at the same time, James allows to do exactly this via isLocalUser(), other implementations might vary.


isUserExisting

public abstract boolean isUserExisting(org.apache.james.services.MailServer mailServerImpl,
                                       java.lang.String username)

testId

public void testId()
            throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException

testIdIncrement

public void testIdIncrement()
                     throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException

testAddUser

public void testAddUser()
                 throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException

testGetNonexistingUserInbox

public void testGetNonexistingUserInbox()
                                 throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException

testGetExisitingUserInbox

public void testGetExisitingUserInbox()
                               throws org.apache.avalon.framework.service.ServiceException
Throws:
org.apache.avalon.framework.service.ServiceException


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