[seam-commits] Seam SVN: r8459 - trunk/examples/mail/src/org/jboss/seam/example/mail/test.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Jul 14 09:26:46 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-07-14 09:26:45 -0400 (Mon, 14 Jul 2008)
New Revision: 8459
Modified:
trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java
trunk/examples/mail/src/org/jboss/seam/example/mail/test/sanitization.xhtml
Log:
Fix mail tests
Modified: trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java
===================================================================
--- trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java 2008-07-14 12:42:05 UTC (rev 8458)
+++ trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java 2008-07-14 13:26:45 UTC (rev 8459)
@@ -554,7 +554,7 @@
{
Contexts.getEventContext().set("name", "Pete\nMuir");
MimeMessage renderedMessage = getRenderedMailMessage("/org/jboss/seam/example/mail/test/sanitization.xhtml");
- assert "Try out".equals(renderedMessage.getSubject());
+ assert "Try out Seam!".equals(renderedMessage.getSubject());
InternetAddress to = (InternetAddress) renderedMessage.getAllRecipients()[0];
assert to.getAddress().equals("peter at email.tld");
assert to.getPersonal().equals("Pete");
@@ -565,7 +565,7 @@
assert from.getPersonal().equals("Pete");
assert renderedMessage.getHeader("Pete") != null;
assert renderedMessage.getHeader("Pete").length == 1;
- assert "roll".equals(renderedMessage.getHeader("Pete")[0]);
+ assert "roll over".equals(renderedMessage.getHeader("Pete")[0]);
}
}.run();
}
Modified: trunk/examples/mail/src/org/jboss/seam/example/mail/test/sanitization.xhtml
===================================================================
--- trunk/examples/mail/src/org/jboss/seam/example/mail/test/sanitization.xhtml 2008-07-14 12:42:05 UTC (rev 8458)
+++ trunk/examples/mail/src/org/jboss/seam/example/mail/test/sanitization.xhtml 2008-07-14 13:26:45 UTC (rev 8459)
@@ -3,9 +3,9 @@
xmlns:h="http://java.sun.com/jsf/html">
<m:from name="#{name}">peter at example.com
- foo</m:from>
+foo</m:from>
<m:to name="#{name}">peter at email.tld
- bar</m:to>
+bar</m:to>
<m:subject>Try out
Seam!</m:subject>
<m:header name="#{name}">roll
More information about the seam-commits
mailing list