View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.transport.email.functional;
8   
9   import javax.mail.internet.MimeMessage;
10  
11  import org.junit.Test;
12  import static org.junit.Assert.assertEquals;
13  
14  public class SmtpFunctionalTestCase extends AbstractEmailFunctionalTestCase
15  {
16  
17      public SmtpFunctionalTestCase()
18      {
19          super(STRING_MESSAGE, "smtp");
20      }
21  
22      @Test
23      public void testSend() throws Exception
24      {
25          doSend();
26      }
27  
28      @Override
29      public void verifyMessage(MimeMessage message) throws Exception
30      {
31          super.verifyMessage(message);
32          assertEquals(DEFAULT_MESSAGE, message.getSubject());
33      }
34  
35  }