org.olat.core.util.mail
Class MailTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.olat.core.test.OlatTestCase
              extended by org.olat.core.util.mail.MailTest
All Implemented Interfaces:
junit.framework.Test

public class MailTest
extends OlatTestCase


Constructor Summary
MailTest(java.lang.String arg0)
           
 
Method Summary
 void setUp()
          SetUp is called before each test.
static junit.framework.TestSuite suite()
           
 void tearDown()
          TearDown is called after each test.
 void testMailAttachments()
          Test for the mail template and the context variable methods
 void testMailAttachmentsInvalid()
          Test for the mail template and the context variable methods
 void testMailerResult()
          Test for the mailer result codes
 void testMailToCcBccForEach()
          Test for the mail template and the context variable methods
 void testMailToCcBccTogether()
          Test for the mail template and the context variable methods
 void testValidEmailAddresses()
          Test the email addres validator
 void testVelocityTemplate()
          this is more a playground method to understand the evaluate method than a rela testcase
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailTest

public MailTest(java.lang.String arg0)
Method Detail

setUp

public void setUp()
SetUp is called before each test.

Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
              throws java.lang.Exception
TearDown is called after each test.

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testValidEmailAddresses

public void testValidEmailAddresses()
Test the email addres validator


testVelocityTemplate

public void testVelocityTemplate()
this is more a playground method to understand the evaluate method than a rela testcase


testMailToCcBccForEach

public void testMailToCcBccForEach()
Test for the mail template and the context variable methods


testMailToCcBccTogether

public void testMailToCcBccTogether()
Test for the mail template and the context variable methods


testMailAttachments

public void testMailAttachments()
Test for the mail template and the context variable methods


testMailAttachmentsInvalid

public void testMailAttachmentsInvalid()
Test for the mail template and the context variable methods


testMailerResult

public void testMailerResult()
Test for the mailer result codes


suite

public static junit.framework.TestSuite suite()
Returns:
Test