org.apache.james
Class JamesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.services.MailServerTestAllImplementations
              extended by org.apache.james.JamesTest
All Implemented Interfaces:
junit.framework.Test

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.
 MailServer createMailServer()
           
 boolean isUserExisting(MailServer mailServerImpl, java.lang.String username)
           
 
Methods inherited from class org.apache.james.services.MailServerTestAllImplementations
testAddUser, testGetExisitingUserInbox, testGetNonexistingUserInbox, testId, testIdIncrement
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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

JamesTest

public JamesTest()
Method Detail

createMailServer

public MailServer createMailServer()
Specified by:
createMailServer in class MailServerTestAllImplementations

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(MailServer mailServerImpl,
                              java.lang.String username)
Specified by:
isUserExisting in class MailServerTestAllImplementations


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