com.silverpeas.mailinglist.service.job
Class TestMailProcessor

java.lang.Object
  extended by com.silverpeas.mailinglist.service.job.TestMailProcessor

public class TestMailProcessor
extends Object


Constructor Summary
TestMailProcessor()
           
 
Method Summary
static void bootstrapTestsContext()
           
protected  String loadHtml()
           
 void setUpTest()
           
static void shutdownTestsContext()
           
 void tearDownTest()
           
 void testPrepareMessageWithHtmlEmail()
           
 void testPrepareMessageWithHtmlEmailAndAttachment()
           
 void testPrepareMessageWithTextEmail()
           
 void testPrepareUnauthorizedMessageWithTextEmail()
           
 void testProcessBodyHtmlText()
           
 void testProcessBodyPlainText()
           
 void testProcessMailPartWithAttachment()
           
 void testProcessMailPartWithHtml()
           
 void testProcessMailPartWithInlineAttachment()
           
 void testProcessMailPartWithText()
           
 void testReplaceSpecialChars()
           
 void testSaveAttachment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMailProcessor

public TestMailProcessor()
Method Detail

bootstrapTestsContext

public static void bootstrapTestsContext()

shutdownTestsContext

public static void shutdownTestsContext()

setUpTest

public void setUpTest()
               throws Exception
Throws:
Exception

tearDownTest

public void tearDownTest()
                  throws Exception
Throws:
Exception

loadHtml

protected String loadHtml()
                   throws IOException
Throws:
IOException

testProcessMailPartWithAttachment

public void testProcessMailPartWithAttachment()
                                       throws IOException,
                                              javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException

testProcessMailPartWithHtml

public void testProcessMailPartWithHtml()
                                 throws javax.mail.MessagingException,
                                        IOException
Throws:
javax.mail.MessagingException
IOException

testProcessMailPartWithInlineAttachment

public void testProcessMailPartWithInlineAttachment()
                                             throws javax.mail.MessagingException,
                                                    IOException
Throws:
javax.mail.MessagingException
IOException

testProcessMailPartWithText

public void testProcessMailPartWithText()
                                 throws javax.mail.MessagingException,
                                        IOException
Throws:
javax.mail.MessagingException
IOException

testReplaceSpecialChars

public void testReplaceSpecialChars()

testSaveAttachment

public void testSaveAttachment()
                        throws IOException,
                               javax.mail.MessagingException
Throws:
IOException
javax.mail.MessagingException

testPrepareMessageWithTextEmail

public void testPrepareMessageWithTextEmail()
                                     throws javax.mail.MessagingException,
                                            IOException
Throws:
javax.mail.MessagingException
IOException

testPrepareMessageWithHtmlEmail

public void testPrepareMessageWithHtmlEmail()
                                     throws javax.mail.MessagingException,
                                            IOException
Throws:
javax.mail.MessagingException
IOException

testPrepareMessageWithHtmlEmailAndAttachment

public void testPrepareMessageWithHtmlEmailAndAttachment()
                                                  throws javax.mail.MessagingException,
                                                         IOException
Throws:
javax.mail.MessagingException
IOException

testProcessBodyPlainText

public void testProcessBodyPlainText()
                              throws Exception
Throws:
Exception

testProcessBodyHtmlText

public void testProcessBodyHtmlText()
                             throws Exception
Throws:
Exception

testPrepareUnauthorizedMessageWithTextEmail

public void testPrepareUnauthorizedMessageWithTextEmail()
                                                 throws javax.mail.MessagingException,
                                                        IOException
Throws:
javax.mail.MessagingException
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.