Author: pete.muir(a)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(a)king.com");
assert to.getPersonal().equals("Gavin King");
InternetAddress from = (InternetAddress) renderedMessage.getFrom()[0];
- assert from.getAddress().equals("peter(a)email.tld");
- assert from.getPersonal().equals("Peter");
+ assert from.getAddress().equals("do-not-reply(a)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(a)king.com");
assert to.getPersonal().equals("Gavin King");
InternetAddress from = (InternetAddress) renderedMessage.getFrom()[0];
- assert from.getAddress().equals("peter(a)email.tld");
- assert from.getPersonal().equals("Peter");
+ assert from.getAddress().equals("do-not-reply(a)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();
Show replies by date