org.apache.james.core
Class MailTestAllImplementations

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.james.core.MailTestAllImplementations
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
MailImplTest

public abstract class MailTestAllImplementations
extends junit.framework.TestCase

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


Constructor Summary
MailTestAllImplementations()
           
 
Method Summary
protected abstract  Mail createMailImplementation()
          provide the concrete implementation to test
protected  void helperTestInitialState(Mail mail)
           
protected  void helperTestMessageSize(Mail mail, int expectedMsgSize)
           
 void testAttributes()
           
 
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

MailTestAllImplementations

public MailTestAllImplementations()
Method Detail

createMailImplementation

protected abstract Mail createMailImplementation()
provide the concrete implementation to test


helperTestInitialState

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

helperTestMessageSize

protected void helperTestMessageSize(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.