org.apache.james.mailrepository
Class AbstractMailRepositoryTest

java.lang.Object
  extended by TestCase
      extended by org.apache.james.mailrepository.AbstractMailRepositoryTest
Direct Known Subclasses:
AvalonMailRepositoryTest, JDBCMailRepositoryTest

public abstract class AbstractMailRepositoryTest
extends TestCase


Field Summary
protected  org.apache.mailet.Mail mail
           
protected  org.apache.james.services.MailRepository mailRepository
           
protected  javax.mail.internet.MimeMessage mimeMessage
           
 
Constructor Summary
AbstractMailRepositoryTest()
           
 
Method Summary
protected abstract  org.apache.james.services.MailRepository getMailRepository()
           
protected  void setUp()
           
protected  void tearDown()
           
 void testEmptyRepository()
           
 void testJames559()
          This test has been written as a proof to: http://issues.apache.org/jira/browse/JAMES-559
 void testJames559WithoutSaveChanges()
          This test has been written as a proof to: http://issues.apache.org/jira/browse/JAMES-559
 void testListMail()
           
 void testStoreAndRetrieveMail()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mail

protected org.apache.mailet.Mail mail

mailRepository

protected org.apache.james.services.MailRepository mailRepository

mimeMessage

protected javax.mail.internet.MimeMessage mimeMessage
Constructor Detail

AbstractMailRepositoryTest

public AbstractMailRepositoryTest()
Method Detail

setUp

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

getMailRepository

protected abstract org.apache.james.services.MailRepository getMailRepository()
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

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

testStoreAndRetrieveMail

public void testStoreAndRetrieveMail()
                              throws javax.mail.MessagingException,
                                     java.io.IOException
Throws:
javax.mail.MessagingException
java.io.IOException

testEmptyRepository

public void testEmptyRepository()
                         throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testListMail

public void testListMail()
                  throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testJames559

public void testJames559()
                  throws java.lang.Exception
This test has been written as a proof to: http://issues.apache.org/jira/browse/JAMES-559

Throws:
java.lang.Exception

testJames559WithoutSaveChanges

public void testJames559WithoutSaveChanges()
                                    throws java.lang.Exception
This test has been written as a proof to: http://issues.apache.org/jira/browse/JAMES-559

Throws:
java.lang.Exception


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