org.apache.james
Class JamesTest

java.lang.Object
  extended by TestCase
      extended by org.apache.james.services.MailServerTestAllImplementations
          extended by org.apache.james.JamesTest

public class JamesTest
extends MailServerTestAllImplementations


Field Summary
 
Fields inherited from class org.apache.james.services.MailServerTestAllImplementations
EXISTING_USER_NAME
 
Constructor Summary
JamesTest()
           
 
Method Summary
 boolean allowsPasswordlessUser()
           
 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.
 org.apache.james.services.MailServer createMailServer()
           
 boolean isUserExisting(org.apache.james.services.MailServer mailServerImpl, java.lang.String username)
           
protected  void tearDown()
           
 
Methods inherited from class org.apache.james.services.MailServerTestAllImplementations
testAddUser, testGetExisitingUserInbox, testGetNonexistingUserInbox, testId, testIdIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JamesTest

public JamesTest()
Method Detail

createMailServer

public org.apache.james.services.MailServer createMailServer()
                                                      throws org.apache.avalon.framework.service.ServiceException
Specified by:
createMailServer in class MailServerTestAllImplementations
Throws:
org.apache.avalon.framework.service.ServiceException

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

allowsPasswordlessUser

public boolean allowsPasswordlessUser()
Specified by:
allowsPasswordlessUser in class MailServerTestAllImplementations

canTestUserExists

public boolean canTestUserExists()
Description copied from class: MailServerTestAllImplementations
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.

Specified by:
canTestUserExists in class MailServerTestAllImplementations

isUserExisting

public boolean isUserExisting(org.apache.james.services.MailServer mailServerImpl,
                              java.lang.String username)
Specified by:
isUserExisting in class MailServerTestAllImplementations


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