[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Peter Muir
peter at bleepbleep.org.uk
Wed Oct 10 07:06:12 EDT 2007
User: pmuir
Date: 07/10/10 07:06:12
Modified: doc/reference/en/modules testing.xml
Log:
Update for refactored structure
Revision Changes Path
1.20 +7 -6 jboss-seam/doc/reference/en/modules/testing.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: testing.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/testing.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- testing.xml 10 Oct 2007 11:01:49 -0000 1.19
+++ testing.xml 10 Oct 2007 11:06:12 -0000 1.20
@@ -436,16 +436,17 @@
}]]></programlisting>
<para>
- We create a new <literal>MailTest</literal>, providing the
- <literal>viewId</literal> of the mail template to render as an
- argument. Do your assertions in the <literal>testMessage()</literal>
- method - the sent message is passed in as an argument. You can of
- course also use any of the standard JSF lifecycle methods.
+ We create a new <literal>FacesRequest</literal> as normal. Inside
+ the invokeApplication hook we render the message using
+ <literal>getRenderedMailMessage(viewId);</literal>, passing the
+ viewId of the message to render. The method returns the rendered
+ message on which you can do your tests. You can of course also use
+ any of the standard JSF lifecycle methods.
</para>
<para>
There is no support for rendering standard JSF components so you
- can't test the body of the mail message easily.
+ can't test the content body of the mail message easily.
</para>
</section>
More information about the jboss-cvs-commits
mailing list