[seam-commits] Seam SVN: r7864 - trunk/examples/mail/src/org/jboss/seam/example/mail/test and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Apr 8 06:49:35 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-04-08 06:49:35 -0400 (Tue, 08 Apr 2008)
New Revision: 7864
Modified:
branches/Seam_2_0/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java
trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java
Log:
Fix tests
Modified: branches/Seam_2_0/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java
===================================================================
--- branches/Seam_2_0/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java 2008-04-08 10:26:33 UTC (rev 7863)
+++ branches/Seam_2_0/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java 2008-04-08 10:49:35 UTC (rev 7864)
@@ -117,8 +117,8 @@
assert to.getAddress().equals("gavin at king.com");
assert to.getPersonal().equals("Gavin King");
InternetAddress from = (InternetAddress) renderedMessage.getFrom()[0];
- assert from.getAddress().equals("peter at email.tld");
- assert from.getPersonal().equals("Peter");
+ assert from.getAddress().equals("do-not-reply at jboss.com");
+ assert from.getPersonal().equals("Seam");
assert "Try out Seam!".equals(renderedMessage.getSubject());
MimeMultipart body = (MimeMultipart) renderedMessage.getContent();
@@ -275,7 +275,7 @@
// m:header
assert renderedMessage.getHeader("X-Sent-From") != null;
assert renderedMessage.getHeader("X-Sent-From").length == 1;
- assert "JBoss Seam".equals(renderedMessage.getHeader("X-Sent-From")[0]);
+ assert "Seam".equals(renderedMessage.getHeader("X-Sent-From")[0]);
MimeMultipart body = (MimeMultipart) renderedMessage.getContent();
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-04-08 10:26:33 UTC (rev 7863)
+++ trunk/examples/mail/src/org/jboss/seam/example/mail/test/MailTest.java 2008-04-08 10:49:35 UTC (rev 7864)
@@ -117,8 +117,8 @@
assert to.getAddress().equals("gavin at king.com");
assert to.getPersonal().equals("Gavin King");
InternetAddress from = (InternetAddress) renderedMessage.getFrom()[0];
- assert from.getAddress().equals("peter at email.tld");
- assert from.getPersonal().equals("Peter");
+ assert from.getAddress().equals("do-not-reply at jboss.com");
+ assert from.getPersonal().equals("Seam");
assert "Try out Seam!".equals(renderedMessage.getSubject());
MimeMultipart body = (MimeMultipart) renderedMessage.getContent();
@@ -275,7 +275,7 @@
// m:header
assert renderedMessage.getHeader("X-Sent-From") != null;
assert renderedMessage.getHeader("X-Sent-From").length == 1;
- assert "JBoss Seam".equals(renderedMessage.getHeader("X-Sent-From")[0]);
+ assert "Seam".equals(renderedMessage.getHeader("X-Sent-From")[0]);
MimeMultipart body = (MimeMultipart) renderedMessage.getContent();
More information about the seam-commits
mailing list