org.subethamail.smtp.test
Class MessageContentTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.subethamail.smtp.test.MessageContentTest
All Implemented Interfaces:
junit.framework.Test

public class MessageContentTest
extends junit.framework.TestCase

This class serves as a test case for both Wiser (since it is used internally here) as well as harder to reach code within the SMTP server that tests a roundtrip message through the DATA portion of the SMTP spec.

Author:
Jon Stevens, Jeff Schnitzer, De Oliveira Edouard <doe_wanted@yahoo.fr>, Ville Skytt?? (contributed some encoding tests)

Field Summary
static int PORT
           
protected  javax.mail.Session session
           
protected  Wiser wiser
           
 
Constructor Summary
MessageContentTest(java.lang.String name)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
protected  void tearDown()
           
 void testBinaryEightBitMessage()
           
 void testIso2022JPEightBitMessage()
           
 void testIso885915EightBitMessage()
           
 void testIso88591EightBitMessage()
           
 void testLargeMessage()
           
 void testMultipleRecipients()
           
 void testUtf16EightBitMessage()
           
 void testUtf8EightBitMessage()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values

wiser

protected Wiser wiser

session

protected javax.mail.Session session
Constructor Detail

MessageContentTest

public MessageContentTest(java.lang.String name)
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testMultipleRecipients

public void testMultipleRecipients()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testLargeMessage

public void testLargeMessage()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testUtf8EightBitMessage

public void testUtf8EightBitMessage()
                             throws java.lang.Exception
Throws:
java.lang.Exception

testUtf16EightBitMessage

public void testUtf16EightBitMessage()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testIso88591EightBitMessage

public void testIso88591EightBitMessage()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testIso885915EightBitMessage

public void testIso885915EightBitMessage()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testIso2022JPEightBitMessage

public void testIso2022JPEightBitMessage()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testBinaryEightBitMessage

public void testBinaryEightBitMessage()
                               throws java.lang.Exception
Throws:
java.lang.Exception

suite

public static junit.framework.Test suite()


Copyright © 2009 SubEthaSMTP. All Rights Reserved. Build version: UNVERSIONED