Rev | Line | |
---|
[3663] | 1 | package br.gov.serpro.expresso.cte.email.compor; |
---|
| 2 | |
---|
| 3 | import org.testng.annotations.Test; |
---|
| 4 | |
---|
| 5 | import br.gov.serpro.expresso.cte.common.BaseEmailTestCase; |
---|
| 6 | |
---|
| 7 | /** |
---|
[3766] | 8 | * Suite:[FUN02.1] Compor Mensagem |
---|
| 9 | * |
---|
| 10 | * Caso de Teste: EL-529:Enviar mensagem com anexo |
---|
| 11 | * |
---|
| 12 | * Link: http://testlink.expressolivre.org/linkto.php?tprojectPrefix=EL&item= |
---|
| 13 | * testcase&id=EL-529 |
---|
| 14 | * |
---|
[3663] | 15 | * @author L.F.Estivalet (Serpro) |
---|
| 16 | * |
---|
| 17 | * Created on Jan 5, 2011 at 2:53:31 PM |
---|
| 18 | * |
---|
| 19 | */ |
---|
| 20 | public class EnviarEmailAnexoTestCase extends BaseEmailTestCase { |
---|
| 21 | |
---|
[3766] | 22 | /** |
---|
| 23 | * Executa o teste. Envia mensagem para email, assunto, texto e anexo |
---|
| 24 | * pre-definidos no arquivo de configuracao. |
---|
| 25 | */ |
---|
[3663] | 26 | @Test |
---|
| 27 | public void test() { |
---|
[3745] | 28 | mp.composeEmail(EMAIL_TESTE_1, EMAIL_ASSUNTO_ANEXO, EMAIL_TEXTO_ANEXO); |
---|
| 29 | mp.addAttachment(ANEXO_1); |
---|
[3663] | 30 | mp.sendMail(); |
---|
[3745] | 31 | mp.assertMessage(MSG_EMAIL_ENVIADO); |
---|
[3663] | 32 | } |
---|
| 33 | |
---|
| 34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.