package br.gov.serpro.cte.email.compor; import org.junit.Test; import br.gov.serpro.cte.common.ExpressoMailTestCase; /** * @author L.F.Estivalet (Serpro) * * Created on Nov 16, 2010 at 3:40:11 PM * */ public class EnviarEmailCopiaTestCase extends ExpressoMailTestCase { @Test public void testa() throws Exception { super.composeEmail(getValor("email.teste.1"), getValor("assunto.copia"), getValor("texto.email.copia")); selenium.click(getCampo("email.copia.1")); selenium.type(getCampo("email.copia.campo.1"), getValor("email.teste.2")); super.sendEmail(); super.assertMessage(getCampo("email.mensagem"), getMensagem("email.enviado")); // Remove email da Caixa de Entrada, itens enviados e lixeira. super.removeEmail(getValor("assunto.copia")); } }