org.apache.james.core
Class MailTestAllImplementations

java.lang.Object
  extended by TestCase
      extended by org.apache.james.core.MailTestAllImplementations
Direct Known Subclasses:
MailImplTest

public abstract class MailTestAllImplementations
extends TestCase

testing common behavior of Mail implementors. subclasses automatically get their Mail-behavior tested.


Constructor Summary
MailTestAllImplementations()
           
 
Method Summary
protected abstract  org.apache.mailet.Mail createMailImplementation()
          provide the concrete implementation to test
protected  void helperTestInitialState(org.apache.mailet.Mail mail)
           
protected  void helperTestMessageSize(org.apache.mailet.Mail mail, int expectedMsgSize)
           
 void testAttributes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailTestAllImplementations

public MailTestAllImplementations()
Method Detail

createMailImplementation

protected abstract org.apache.mailet.Mail createMailImplementation()
provide the concrete implementation to test


helperTestInitialState

protected void helperTestInitialState(org.apache.mailet.Mail mail)
                               throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

helperTestMessageSize

protected void helperTestMessageSize(org.apache.mailet.Mail mail,
                                     int expectedMsgSize)
                              throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException

testAttributes

public void testAttributes()


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