org.alfresco.email.server
Class EmailServiceImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.email.server.EmailServiceImplTest
All Implemented Interfaces:
junit.framework.Test

public class EmailServiceImplTest
extends junit.framework.TestCase

Unit test of EmailServiceImplTest


Constructor Summary
EmailServiceImplTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testEmailContributorsAuthority()
          The Email contributors authority controls who can add email.
 void testFolderSubject()
          ALF-9544 Inbound email to a folder restricts file name to 86 characters or less.
 void testFromName()
          Test the from name.
 void testMultipleMessagesToFolder()
          ALF-1878 Duplicate incoming email Subjects over-write each other
 
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
 

Constructor Detail

EmailServiceImplTest

public EmailServiceImplTest()
Method Detail

setUp

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

tearDown

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

testFromName

public void testFromName()
                  throws java.lang.Exception
Test the from name. Step 1: User admin will map to the "unknownUser" which out of the box is "anonymous" Sending email From "admin" will fail. Step 2: Send from the test user to the test' user's home folder.

Throws:
java.lang.Exception

testFolderSubject

public void testFolderSubject()
                       throws java.lang.Exception
ALF-9544 Inbound email to a folder restricts file name to 86 characters or less.

Throws:
java.lang.Exception

testMultipleMessagesToFolder

public void testMultipleMessagesToFolder()
                                  throws java.lang.Exception
ALF-1878 Duplicate incoming email Subjects over-write each other

Throws:
java.lang.Exception

testEmailContributorsAuthority

public void testEmailContributorsAuthority()
                                    throws java.lang.Exception
The Email contributors authority controls who can add email. This test switches between the EMAIL_CONTRIBUTORS group and EVERYONE

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.